Programmable LSI

ABSTRACT

A low-power programmable LSI that can perform configuration (dynamic configuration) at high speed and can quickly start is provided. The programmable LSI includes a plurality of logic elements and a memory element for storing configuration data to be input to the plurality of logic elements. The plurality of logic elements each include a configuration memory. Each of the plurality of logic elements performs different arithmetic processing and changes an electrical connection between the logic elements in accordance with the configuration data stored in the configuration memory. The memory element is formed using a storage element including a transistor whose channel is formed in an oxide semiconductor layer and a node set in a floating state when the transistor is turned off.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to semiconductor devices. In particular,the present invention relates to programmable LSIs and semiconductordevices including the programmable LSIs. Further, the present inventionrelates to electronic devices including the semiconductor devices.

2. Description of the Related Art

Programmable LSIs show flexibility in a reduction in development periodand a change in design specification as compared to conventionalapplication specific integrated circuits (ASIC) and gate arrays, whichis advantageous. Programmable LSIs are widely used in semiconductordevices.

A programmable LSI includes, for example, a plurality of logic elementsand wirings between the logic elements. When the functions of the logicelements are changed, the function of the programmable LSI can bechanged. The logic element is formed using, for example, a look-up tableor the like. The look-up table performs arithmetic processing based onsetting data on an input signal so that the input signal is used as anoutput signal. Here, the setting data is stored in storage elements thatcorrespond to the logic elements. In other words, the look-up table canperform different arithmetic processing in accordance with the datastored in the storage elements. Thus, the functions of the logicelements can be specified when specific setting data is stored in thestorage elements.

The setting data or the like of the look-up table is referred to asconfiguration data. In addition, the storage elements that correspond tothe logic elements and store the configuration data are referred to asconfiguration memories. Further, storage of the configuration data inthe configuration memory is referred to as configuration. In particular,rewrite (refresh) of the configuration data stored in the configurationmemory is referred to as re-configuration. The circuit structure of theprogrammable LSI can be changed into a circuit structure suitable for auser's request when desired configuration data is produced (programmed)and configuration is performed.

The programmable LSI generally performs configuration (staticconfiguration) under the condition that the operation of a semiconductordevice including the programmable LSI is stopped. In contrast, atechnique for performing configuration (dynamic configuration) when thesemiconductor device operates in order to further exploit the featuresof the programmable LSI has attracted attention.

As a method for performing dynamic configuration, Patent Document 1discloses a method in which a dynamic random access memory (DRAM) isprovided separately from a configuration memory and configuration datato be written to the configuration memory is stored in the DRAM. Theconfiguration memory is formed using a static random access memory(SRAM). Patent Document 1 shows a programmable LSI for performingconfiguration in a short time by reading configuration data from theDRAM and writing the configuration data to the SRAM that is theconfiguration memory.

REFERENCE

-   Patent Document 1: Japanese Published Patent Application No.    10-285014.

SUMMARY OF THE INVENTION

With the structure of the programmable LSI disclosed in Patent Document1, regular refresh operation is needed in the DRAM because configurationdata is stored in the DRAM. Thus, the power consumption of theprogrammable LSI is increased. Further, since the DRAM is a volatilememory, it is necessary to store data in the DRAM every time supply ofpower supply voltage to the programmable LSI is started. Consequently,in order to retain the configuration data in the programmable LSI evenafter the supply of power supply voltage to the programmable LSI isstopped, a nonvolatile memory is needed in addition to the DRAM.Further, large-scale data transfer from the nonvolatile memory to theDRAM is needed every time supply of power supply voltage to theprogrammable LSI is started; thus, it takes a long time to performconfiguration. Consequently, it takes a long time for the programmableLSI to serve its function (to start).

Thus, it is an object to provide a low-power programmable LSI that canperform configuration (dynamic configuration) at high speed and canquickly start.

One aspect of a programmable LSI in the present invention includes aplurality of logic elements and a memory element for storingconfiguration data to be input to the plurality of logic elements. Theplurality of logic elements each include a configuration memory. Atleast one part of configuration data stored in the memory element isinput to and stored in the configuration memory. Each of the pluralityof logic elements performs different arithmetic processing and changesan electrical connection between the logic elements in accordance withthe configuration data stored in the configuration memory.

One aspect of a programmable LSI in the present invention includes aplurality of logic elements and a memory element for storingconfiguration data to be input to the plurality of logic elements. Theplurality of logic elements each include a configuration memory, alook-up table, and a selection circuit. At least one part ofconfiguration data stored in the memory element is input to and storedin the configuration memory. In each of the plurality of logic elements,the look-up table performs different arithmetic processing in accordancewith the configuration data stored in the configuration memory. Theselection circuit changes an electrical connection between the logicelements in accordance with the configuration data stored in theconfiguration memory.

One aspect of a programmable LSI in the present invention includes aplurality of logic elements and a memory element for storingconfiguration data to be input to the plurality of logic elements. Theplurality of logic elements each include a configuration memory, alook-up table, a selection circuit, and a register. At least one part ofconfiguration data stored in the memory element is input to and storedin the configuration memory. In each of the plurality of logic elements,the look-up table performs different arithmetic processing in accordancewith the configuration data stored in the configuration memory. Theselection circuit changes an electrical connection between the logicelements in accordance with the configuration data stored in theconfiguration memory. An output signal of the look-up table and a clocksignal are input to the register, and the register outputs a signalcorresponding to the output signal in synchronization with the clocksignal.

(Specific Example of Memory Element)

The memory element is formed using a nonvolatile storage element. Inother words, the memory element is formed using a storage elementcapable of retaining stored data (configuration data) for a certainperiod after supply of power supply voltage is stopped. A chargeaccumulation storage element, a resistance-change (phase-change) storageelement, or the like can be used as the nonvolatile storage element.

Alternatively, as the nonvolatile storage element, it is possible to usea storage element that includes a switching element and a node set in afloating state when the switching element is turned off and holds asignal potential corresponding to data (configuration data). In thatcase, when an enhancement (normally off) transistor whose off-statecurrent is extremely low is used as the switching element and a groundpotential is input to a gate of the transistor while power supplyvoltage is not supplied to the storage element, the transistor can beturned off while power supply voltage is not supplied to the storageelement. In this manner, the potential (the signal potential) of thenode can be held for a long time; thus, the memory element can functionas a substantial nonvolatile memory.

As a transistor whose off-state current is extremely low, it is possibleto use a transistor which has a channel in a layer or substrateincluding a semiconductor whose band gap is wider than that of silicon.A compound semiconductor is an example of the semiconductor whose bandgap is wider than that of silicon. Examples of the compoundsemiconductor include an oxide semiconductor, a nitride semiconductor,and the like.

For example, the memory element can be formed using a storage elementthat includes a transistor whose channel is formed in an oxidesemiconductor layer and a node set in a floating state when thetransistor is turned off. A signal potential corresponding to data(configuration data) is held in the node.

One aspect of the specific structure of the memory element formed usinga storage element that includes a transistor whose channel is formed inan oxide semiconductor layer and a node set in a floating state when thetransistor is turned off is described below.

(Specific Example of Storage Element included in Memory Element)

The memory element can have more than one of Structure 1-1 of thestorage element, Structure 1-2 of the storage element, Structure 2-1 ofthe storage element, Structure 2-2 of the storage element, and Structure3 of the storage element.

(Structure 1-1 of Storage Element)

The storage element includes a first transistor, a second transistor,and a capacitor. A channel of the first transistor is formed in an oxidesemiconductor layer. A gate of the first transistor is electricallyconnected to a first wiring. One of a source and a drain of the firsttransistor is electrically connected to a second wiring. The other ofthe source and the drain of the first transistor is electricallyconnected to a gate of the second transistor. One of a source and adrain of the second transistor is electrically connected to a thirdwiring. The other of the source and the drain of the second transistoris electrically connected to a fourth wiring. One of a pair ofelectrodes of the capacitor is electrically connected to the gate of thesecond transistor. The other of the pair of electrodes of the capacitoris electrically connected to a fifth wiring.

Structure 1-1 of the storage element can be expressed in a different wayas follows.

The storage element includes a first transistor, a second transistor,and a capacitor. A channel of the first transistor is formed in an oxidesemiconductor layer. A signal potential (a signal potential input to asecond wiring) corresponding to data (configuration data) is input to agate of the second transistor and one of a pair of electrodes of thecapacitor through the first transistor which is turned on by a controlsignal (a control signal input to a first wiring) input to a gate of thefirst transistor. When the first transistor is turned off by the controlsignal (the control signal input to the first wiring) input to the gateof the first transistor, the signal potential is held in the gate of thesecond transistor and the one of the pair of electrodes of thecapacitor. In this manner, data is written. Further, the data is readunder the condition that the potential of a source of the secondtransistor (the potential of a third wiring) and the potential of theother of the pair of electrodes of the capacitor (the potential of afifth wiring) are potentials at which the state between the source and adrain of the second transistor is changed in accordance with the signalpotential. Here, the state between the source and the drain of thetransistor is a non-conduction state or a conduction state. By detectionof the state between the source and the drain of the second transistor,data retained in the storage element is read.

Note that by control of the potential of the fifth wiring, the secondtransistor can be turned on, that is, the state between the source andthe drain of the second transistor can be a conduction state regardlessof data retained in the storage element. Further, by control of thepotential of the fifth wiring, the second transistor can be turned off,that is, the state between the source and the drain of the secondtransistor can be a non-conduction state regardless of data retained inthe storage element.

In Structure 1-1 of the storage element, the first wiring, the fifthwiring, the second wiring, and the fourth wiring are also referred to asa write word line, a read word line, a data line, and a bit line,respectively.

Here, a node which is set in a floating state when the transistor whosechannel is formed in the oxide semiconductor layer is turned off can bethe gate of the second transistor or the one of the pair of electrodesof the capacitor.

Note that in Structure 1-1 of the storage element, the second wiring andthe fourth wiring can be merged into a single wiring. A structure wherethe second wiring and the fourth wiring are merged into a single wiringis Structure 1-2 of the storage element.

(Structure 1-2 of Storage Element)

The storage element includes a first transistor, a second transistor,and a capacitor. A channel of the first transistor is formed in an oxidesemiconductor layer. A gate of the first transistor is electricallyconnected to a first wiring. One of a source and a drain of the firsttransistor is electrically connected to a second wiring. The other ofthe source and the drain of the first transistor is electricallyconnected to a gate of the second transistor. One of a source and adrain of the second transistor is electrically connected to a thirdwiring. The other of the source and the drain of the second transistoris electrically connected to the second wiring. One of a pair ofelectrodes of the capacitor is electrically connected to the gate of thesecond transistor. The other of the pair of electrodes of the capacitoris electrically connected to a fourth wiring.

Structure 1-2 of the storage element can be expressed in a different wayas follows.

The storage element includes a first transistor, a second transistor,and a capacitor. A channel of the first transistor is formed in an oxidesemiconductor layer. A signal potential (a signal potential input to asecond wiring) corresponding to data (configuration data) is input to agate of the second transistor and one of a pair of electrodes of thecapacitor through the first transistor which is turned on by a controlsignal (a control signal input to a first wiring) input to a gate of thefirst transistor. When the first transistor is turned off by the controlsignal (the control signal input to the first wiring) input to the gateof the first transistor, the signal potential is held in the gate of thesecond transistor and the one of the pair of electrodes of thecapacitor. In this manner, data is written. Further, the data is readunder the condition that the potential of a source of the secondtransistor (the potential of a third wiring) and the potential of theother of the pair of electrodes of the capacitor (the potential of afourth wiring) are potentials at which the state between the source anda drain of the second transistor is changed in accordance with thesignal potential. Here, the state between the source and the drain ofthe transistor is a non-conduction state or a conduction state. Bydetection of the state between the source and the drain of the secondtransistor, data retained in the storage element is read.

Note that by control of the potential of the fourth wiring, the secondtransistor can be turned on, that is, the state between the source andthe drain of the second transistor can be a conduction state regardlessof data retained in the storage element. Further, by control of thepotential of the fourth wiring, the second transistor can be turned off,that is, the state between the source and the drain of the secondtransistor can be a non-conduction state regardless of data retained inthe storage element.

In Structure 1-2 of the storage element, the first wiring, the fourthwiring, and the second wiring are also referred to as a write word line,a read word line, and a bit line, respectively.

Here, a node which is set in a floating state when the transistor whosechannel is formed in the oxide semiconductor layer is turned off can bethe gate of the second transistor or the one of the pair of electrodesof the capacitor.

(Structure 2-1 of Storage Element)

The storage element includes a first transistor, a second transistor,and a third transistor. A channel of the first transistor is formed inan oxide semiconductor layer. A gate of the first transistor iselectrically connected to a first wiring. One of a source and a drain ofthe first transistor is electrically connected to a second wiring. Theother of the source and the drain of the first transistor iselectrically connected to a gate of the second transistor. One of asource and a drain of the second transistor is electrically connected toa third wiring. The other of the source and the drain of the secondtransistor is electrically connected to a fourth wiring through a sourceand a drain of the third transistor. A gate of the third transistor iselectrically connected to a fifth wiring.

Structure 2-1 of the storage element can be expressed in a different wayas follows.

The storage element includes a first transistor, a second transistor,and a third transistor. A channel of the first transistor is formed inan oxide semiconductor layer. A signal potential (a signal potentialinput to a second wiring) corresponding to data (configuration data) isinput to a gate of the second transistor through the first transistorwhich is turned on by a control signal (a control signal input to afirst wiring) input to a gate of the first transistor. When the firsttransistor is turned off by the control signal (the control signal inputto the first wiring) input to the gate of the first transistor, thesignal potential is held in the gate of the second transistor. In thismanner, data is written. Further, the data is read under the conditionthat the potential of a source of the second transistor (the potentialof a third wiring) is a potential at which the state between the sourceand a drain of the second transistor is changed in accordance with thesignal potential and that the third transistor is turned on by a controlsignal (a control signal input to a fifth wiring) input to a gate of thethird transistor. Here, the state between the source and the drain ofthe transistor is a non-conduction state or a conduction state. Bydetection of the state between the source and the drain of the secondtransistor, data retained in the storage element is read.

Note that a constant potential (e.g., a low power supply potential suchas a ground potential) can be input to the third wiring.

In Structure 2-1 of the storage element, the first wiring, the fifthwiring, the second wiring, and the fourth wiring are also referred to asa write word line, a read word line, a data line, and a bit line,respectively.

Here, a node which is set in a floating state when the transistor whosechannel is formed in the oxide semiconductor layer is turned off can bethe gate of the second transistor.

Note that in Structure 2-1 of the storage element, the second wiring andthe fourth wiring can be merged into a single wiring. A structure wherethe second wiring and the fourth wiring are merged into a single wiringis Structure 2-2 of the storage element.

(Structure 2-2 of Storage Element)

The storage element includes a first transistor, a second transistor,and a third transistor. A channel of the first transistor is formed inan oxide semiconductor layer. A gate of the first transistor iselectrically connected to a first wiring. One of a source and a drain ofthe first transistor is electrically connected to a second wiring. Theother of the source and the drain of the first transistor iselectrically connected to a gate of the second transistor. One of asource and a drain of the second transistor is electrically connected toa third wiring. The other of the source and the drain of the secondtransistor is electrically connected to the second wiring through asource and a drain of the third transistor. A gate of the thirdtransistor is electrically connected to a fourth wiring.

Structure 2-2 of the storage element can be expressed in a different wayas follows.

The storage element includes a first transistor, a second transistor,and a third transistor. A channel of the first transistor is formed inan oxide semiconductor layer. A signal potential (a signal potentialinput to a second wiring) corresponding to data (configuration data) isinput to a gate of the second transistor through the first transistorwhich is turned on by a control signal (a control signal input to afirst wiring) input to a gate of the first transistor. When the firsttransistor is turned off by the control signal (the control signal inputto the first wiring) input to the gate of the first transistor, thesignal potential can be held in the gate of the second transistor. Inthis manner, data is written. Further, the data is read under thecondition that the potential of a source of the second transistor (thepotential of a third wiring) is a potential at which the state betweenthe source and a drain of the second transistor is changed in accordancewith the signal potential and that the third transistor is turned on bya control signal (a control signal input to a fourth wiring) input to agate of the third transistor. Here, the state between the source and thedrain of the transistor is a non-conduction state or a conduction state.By detection of the state between the source and the drain of the secondtransistor, data retained in the storage element is read.

Note that a constant potential (e.g., a low power supply potential suchas a ground potential) can be input to the third wiring.

In Structure 2-2 of the storage element, the first wiring, the fourthwiring, and the second wiring are also referred to as a write word line,a read word line, and a bit line, respectively.

Here, a node which is set in a floating state when the transistor whosechannel is formed in the oxide semiconductor layer is turned off can bethe gate of the second transistor.

(Structure 3 of Storage Element)

The storage element includes a transistor and a capacitor. A channel ofthe transistor is formed in an oxide semiconductor layer. A gate of thetransistor is electrically connected to a first wiring. One of a sourceand a drain of the transistor is electrically connected to a secondwiring. The other of the source and the drain of the transistor iselectrically connected to one of a pair of electrodes of the capacitor.

In Structure 3 of the storage element, the other of the pair ofelectrodes of the capacitor can be electrically connected to a thirdwiring. A constant potential (e.g., a low power supply potential such asa ground potential) can be input to the third wiring.

Structure 3 of the storage element can be expressed in a different wayas follows.

The storage element includes a transistor and a capacitor. A channel ofthe transistor is formed in an oxide semiconductor layer. A signalpotential (a signal potential input to a second wiring) corresponding todata (configuration data) is input to one of a pair of electrodes of thecapacitor through the transistor which is turned on by a control signal(a control signal input to a first wiring) input to a gate of thetransistor. Then, when the transistor is turned off by the controlsignal (the control signal input to the first wiring) input to the gateof the transistor, the signal potential is held in the capacitor. Inthis manner, data is written. After that, data retained in the storageelement is read by detection of the signal potential held in the one ofthe pair of electrodes of the capacitor (can also be referred to as theamount of electric charge corresponding to the signal potential) fromthe second wiring while the transistor is turned on by the controlsignal (the control signal input to the first wiring) input to the gateof the transistor.

In Structure 3 of the storage element, the first wiring and the secondwiring are also referred to as a word line and a bit line, respectively.

Here, a node which is set in a floating state when the transistor whosechannel is formed in the oxide semiconductor layer is turned off can bethe one of the pair of electrodes of the capacitor.

The above is the description of variations of the storage elementincluded in the memory element.

(Variations of Structure of Memory Element)

The memory element can include a memory cell array including theplurality of storage elements arranged in matrix. In that case, in thememory cell array, a wiring (e.g., a word line, a write word line, or aread word line) can be used in common among the storage elementsarranged in one row and a wiring (e.g., a bit line or a data line) canbe used in common among the storage elements arranged in one column

The memory element can include a decoder (a row decoder or a columndecoder). A given storage element in the memory cell array can beselected by the decoder. Data is written to and read from the selectedstorage element.

The memory element can include a sense amplifier. The potential of a bitline can be input to the sense amplifier. A signal read from the storageelement can be amplified by the sense amplifier. A latch sense amplifiercan be used as the sense amplifier. Alternatively, a different senseamplifier may be used. For example, an inverter, a buffer, or anoperational amplifier may be used.

The memory element can include a precharge circuit. The prechargecircuit has a function of precharging the potential of a bit line.

The memory element may include a temporary storage circuit such as apage buffer. Data input to the memory element can be written to thetemporary storage circuit and can be held. Then, the data can be writtento a given storage element in the memory cell array.

The above is the description of variations of the memory element.

(Variations of Component of Programmable LSI)

The configuration memory may include a storage element including a latchcircuit. The configuration memory may include a storage elementincluding a capacitor.

In the case where the configuration memory includes a storage elementincluding a latch circuit, the storage element can be used as asubstitute for the sense amplifier of the memory element.

The memory element includes a storage element whose predetermined nodeis set in a floating state when a transistor whose channel is formed inan oxide semiconductor layer is turned off and holds a signal potentialcorresponding to data in the node. The off-state current of thetransistor whose channel is formed in the oxide semiconductor layer isextremely low. Thus, a fluctuation in the signal potential due toleakage of the transistor can be inhibited. In this manner, each storageelement included in the memory element can continue to hold a signalpotential corresponding to data (configuration data) for a long timeafter supply of power supply voltage to the memory element is stopped.In short, the memory element can function like a nonvolatile memory.

In a programmable LSI including such a memory element and a plurality oflogic elements, regular refresh operation of the memory element is notneeded or the frequency of refresh operation can be markedly decreased;thus, power consumption can be reduced. Further, it is not necessary towrite data to the memory element every time supply of power supplyvoltage to the programmable LSI is started. Thus, the configuration timecan be shortened. Consequently, the time to serve the predeterminedfunction of the programmable LSI (the time to start the programmableLSI) can be shortened.

In this manner, it is possible to provide a low-power programmable LSIthat can perform configuration (dynamic configuration) at high speed andcan quickly start.

BRIEF DESCRIPTION OF THE DRAWINGS

In the accompanying drawings:

FIG. 1A is a block diagram of a programmable LSI and FIGS. 1B to 1D arecircuit diagrams of storage elements;

FIG. 2 is a block diagram of a memory element;

FIG. 3 is a circuit diagram of a memory cell array;

FIG. 4 is a circuit diagram of a memory cell array;

FIG. 5 is a circuit diagram of a memory cell array;

FIGS. 6A and 6B are circuit diagrams of a memory cell array;

FIG. 7 is a circuit diagram of a precharge circuit;

FIGS. 8A to 8D are circuit diagrams of a sense amplifier;

FIGS. 9A to 9G are circuit diagrams of a sense amplifier;

FIGS. 10A to 10C are circuit diagrams of storage elements included in aconfiguration memory;

FIGS. 11A to 11C are circuit diagrams of a look-up table;

FIGS. 12A and 12B are circuit diagrams of a selection circuit;

FIGS. 13A to 13D illustrate steps of forming a storage element;

FIGS. 14A to 14C illustrate steps of forming a storage element;

FIGS. 15A to 15C illustrate steps of forming a storage element;

FIG. 16 is a cross-sectional view illustrating the structure of thestorage element;

FIGS. 17A to 17D are cross-sectional views each illustrating thestructure of a transistor whose channel is formed in an oxidesemiconductor layer;

FIG. 18 is a block diagram of a portable electronic device; and

FIG. 19 is a block diagram of an e-book reader.

DETAILED DESCRIPTION OF THE INVENTION

Embodiments and an example will be described in detail below withreference to the drawings. Note that the present invention is notlimited to the following description. It will be readily appreciated bythose skilled in the art that modes and details of the present inventioncan be modified in various ways without departing from the spirit andscope of the present invention. The present invention therefore shouldnot be construed as being limited to the following description of theembodiments and the example.

Note that functions of a “source” and a “drain” might interchange when atransistor of opposite polarity is used or the direction of current flowis changed in circuit operation, for example. Thus, in thisspecification, the terms “source” and “drain” can interchange.

The expression “electrically connected” includes the case wherecomponents are connected to each other through an object having anyelectric action. Here, there is no particular limitation on an objecthaving any electric action as long as electric signals can betransmitted and received between components that are connected to eachother. Examples of an “object having any electric action” include aswitching element such as a transistor, a resistor, an inductor, acapacitor, and an element with a variety of functions in addition to anelectrode and a wiring.

In addition, even when independent components are electrically connectedto each other in a circuit diagram, there is the case where oneconductive film has functions of a plurality of components, such as thecase where part of a wiring functions as an electrode. The expression“electrically connected” in this specification also includes such a casewhere one conductive film has functions of a plurality of components.

The term “over” or “below” does not necessarily mean that a component isplaced “directly on” or “directly under” another component. For example,the expression “a gate electrode over a gate insulating layer” does notexclude the case where another component is placed between the gateinsulating layer and the gate electrode.

The position, size, range, or the like of each component illustrated indrawings and the like is not accurately represented in some cases foreasy understanding. Thus, the disclosed invention is not necessarilylimited to the position, size, range, or the like disclosed in thedrawings and the like.

Ordinal numbers such as “first”, “second”, and “third” are used in orderto avoid confusion among components.

Embodiment 1

One aspect of a programmable LSI is described.

FIG. 1A schematically illustrates the structure of a programmable LSI.The programmable LSI includes a plurality of logic elements 310 and amemory element 300. FIG. 1A typically illustrates the three logicelements 310. The number of logic elements can be a given number.Alternatively, the programmable LSI may further include plural sets ofthe plurality of logic elements 310 and the memory element 300.Alternatively, the programmable LSI may further include a multiplier, aRAM block, a PLL block, or an I/O element. The multiplier has a functionof multiplying plural pieces of data at high speed. The RAM block has afunction of storing given data as a memory. The PLL block has a functionof supplying a clock signal to a circuit in the programmable LSI. TheI/O element has a function of controlling signal passing between theprogrammable LSI and an external circuit.

The logic element 310 includes a configuration memory 311, a look-uptable 312, a selection circuit 314, and a register 313. Note that thelogic element 310 may further include a different register, amultiplexer, or a switch.

A known storage element can be used as the configuration memory 311.

In the logic element 310, the look-up table 312 performs differentarithmetic processing in accordance with configuration data stored inthe configuration memory 311.

In the logic element 310, the selection circuit 314 changes anelectrical connection with the different logic element 310 in accordancewith the configuration data stored in the configuration memory 311. Forexample, the selection circuit 314 changes an electrical connection in awiring resource provided in the programmable LSI. In this manner, anelectrical connection between the logic elements 310 or an electricalconnection between the logic element 310 and a different circuit (e.g.,a multiplier, a RAM block, a PLL block, or an I/O element) is changed.

In the logic element 310, an output signal of the look-up table 312 anda clock signal (CLK) are input to the register 313, and a signalcorresponding to the output signal is output in synchronization with theclock signal (CLK). The output signal of the register 313 or the outputsignal of the look-up table 312 is used as an output signal of the logicelement 310 and is output to the predetermined logic element 310 or thelike in accordance with an electrical connection selected by theselection circuit 314. Here, in the logic element 310, a multiplexer orthe like for selecting the output signal of the register 313 or theoutput signal of the look-up table 312 may be provided.

Note that although FIG. 1A schematically illustrates the structure wherethe configuration memories 311 are positioned in one place in one logicelement 310, this embodiment is not limited to this structure. Theconfiguration memories 311 may be positioned in a plurality of places sothat they are provided in the look-up table 312, the selection circuit314, and the like.

Note that in the structure of the logic element 310 illustrated in FIG.1A, it is possible not to provide the register 313. Alternatively, theprogrammable LSI may include the logic element 310 that includes theregister 313 and the logic element 310 that does not include theregister 313. In the logic element 310 that does not include theregister 313, the output of the look-up table 312 can be used as theoutput of the logic element 310.

(Structure of Memory Element 300)

The memory element 300 can be formed using a plurality of storageelements each including a transistor whose channel is formed in an oxidesemiconductor layer and a node set in a floating state when thetransistor is turned off. FIGS. 1B to 1D illustrate one aspect of thestorage element.

(Structure 1 of Storage Element)

A storage element 100 a illustrated in FIG. 1B includes a transistor101, a transistor 102, and a capacitor 103. A channel of the transistor101 is formed in an oxide semiconductor layer. Note that in FIG. 1B,“OS” is written beside the transistor 101 in order to indicate that thechannel of the transistor 101 is formed in the oxide semiconductorlayer. A gate of the transistor 101 is electrically connected to aterminal W. One of a source and a drain of the transistor 101 iselectrically connected to a terminal D. The other of the source and thedrain of the transistor 101 is electrically connected to a gate of thetransistor 102. One of a source and a drain of the transistor 102 iselectrically connected to a terminal S. The other of the source and thedrain of the transistor 102 is electrically connected to a terminal B.One of a pair of electrodes of the capacitor 103 is electricallyconnected to the gate of the transistor 102. The other of the pair ofelectrodes of the capacitor 103 is electrically connected to a terminalC. Here, each terminal can be electrically connected to a wiring or anelectrode.

A wiring electrically connected to the terminal W, a wiring electricallyconnected to the terminal C, a wiring electrically connected to theterminal D, and a wiring electrically connected to the terminal B arealso referred to as a write word line, a read word line, a data line,and a bit line, respectively. Note that the data line and the bit linecan be merged into a single wiring. Here, in the case where the dataline and the bit line are merged into a single wiring, the wiring isreferred to as a bit line.

Here, a node which is set in a floating state when the transistor 101whose channel is formed in the oxide semiconductor layer is turned offcan be the gate of the transistor 102 or the one of the pair ofelectrodes of the capacitor 103.

(Method for Driving Storage Element 100 a)

A method for driving the storage element 100 a illustrated in FIG. 1B isdescribed.

First, writing of data to the storage element 100 a is described. Asignal potential (a signal potential input to the terminal D)corresponding to data (configuration data) is input to the gate of thetransistor 102 and the one of the pair of electrodes of the capacitor103 through the transistor 101 which is turned on by a control signal (acontrol signal input to the terminal W) input to the gate of thetransistor 101. Then, when the transistor 101 is turned off by thecontrol signal (the control signal input to the terminal W) input to thegate of the transistor 101, the signal potential is held in the gate ofthe transistor 102 and the one of the pair of electrodes of thecapacitor 103. In this manner, data can be written to the storageelement 100 a.

Here, the off-state current of the transistor 101 whose channel isformed in the oxide semiconductor layer is extremely low. When anenhancement (normally off) transistor is used as the transistor 101 anda ground potential is input to the gate of the transistor 101 whilepower supply voltage is not supplied to the storage element 100 a, thetransistor 101 can be turned off while power supply voltage is notsupplied to the storage element 100 a. In this manner, the potentials(the signal potentials) of the gate of the transistor 102 and the one ofthe pair of electrodes of the capacitor 103 can be held for a long timeeven while power supply voltage is not supplied to the storage element100 a. Thus, the storage element 100 a can retain data even after supplyof power supply voltage is stopped.

Then, reading of data from the storage element 100 a is described. Thepotential of the source (the terminal S) of the transistor 102 and thepotential of the other of the pair of electrodes (the terminal C) of thecapacitor 103 are potentials at which the state between the source andthe drain of the transistor 102 is changed in accordance with the signalpotentials. Here, the state between the source and the drain of thetransistor 102 is a non-conduction state or a conduction state. Bydetection of the state between the source and the drain of thetransistor 102, data retained in the storage element 100 a is read.

Note that by control of the potential of the terminal C, the transistor102 can be turned on, that is, the state between the source and thedrain of the transistor 102 can be a conduction state regardless of dataretained in the storage element 100 a. Further, by control of thepotential of the terminal C, the transistor 102 can be turned off, thatis, the state between the source and the drain of the transistor 102 canbe a non-conduction state regardless of data retained in the storageelement 100 a.

The above is the description of the method for driving the storageelement 100 a.

When data is written to and read from each of the plurality of storageelements 100 a included in the memory element 300 as described above,the memory element 300 can write and read plural pieces of data(configuration data).

(Structure 2 of Storage Element)

A storage element whose structure is different from Structure 1 of thestorage element is described.

A storage element 100 b illustrated in FIG. 1C includes the transistor101, the transistor 102, and a transistor 141. The channel of thetransistor 101 is formed in the oxide semiconductor layer. Note that inFIG. 1C, “OS” is written beside the transistor 101 in order to indicatethat the channel of the transistor 101 is formed in the oxidesemiconductor layer. The gate of the transistor 101 is electricallyconnected to the terminal W. The one of the source and the drain of thetransistor 101 is electrically connected to the terminal D. The other ofthe source and the drain of the transistor 101 is electrically connectedto the gate of the transistor 102. The one of the source and the drainof the transistor 102 is electrically connected to the terminal S. Theother of the source and the drain of the transistor 102 is electricallyconnected to the terminal B through a source and a drain of thetransistor 141. A gate of the transistor 141 is electrically connectedto a terminal X. Here, each terminal can be electrically connected to awiring or an electrode.

The wiring electrically connected to the terminal W, a wiringelectrically connected to the terminal X, the wiring electricallyconnected to the terminal D, and the wiring electrically connected tothe terminal B are also referred to as a write word line, a read wordline, a data line, and a bit line, respectively. Note that the data lineand the bit line can be merged into a single wiring. Here, in the casewhere the data line and the bit line are merged into a single wiring,the wiring is referred to as a bit line.

Here, a node which is set in a floating state when the transistor 101whose channel is formed in the oxide semiconductor layer is turned offcan be the gate of the transistor 102.

(Method for Driving Storage Element 100 b)

A method for driving the storage element 100 b illustrated in FIG. 1C isdescribed.

First, writing of data to the storage element 100 b is described. Asignal potential (a signal potential input to the terminal D)corresponding to data (configuration data) is input to the gate of thetransistor 102 through the transistor 101 which is turned on by acontrol signal (a control signal input to the terminal W) input to thegate of the transistor 101. Then, when the transistor 101 is turned offby the control signal (the control signal input to the terminal W) inputto the gate of the transistor 101, the signal potential is held in thegate of the transistor 102. In this manner, data can be written to thestorage element 100 b.

Here, the off-state current of the transistor 101 whose channel isformed in the oxide semiconductor layer is extremely low. When anenhancement (normally off) transistor is used as the transistor 101 anda ground potential is input to the gate of the transistor 101 whilepower supply voltage is not supplied to the storage element 100 b, thetransistor 101 can be turned off while power supply voltage is notsupplied to the storage element 100 b. In this manner, the potential(the signal potential) of the gate of the transistor 102 can be held fora long time even while power supply voltage is not supplied to thestorage element 100 b. Thus, the storage element 100 b can retain dataeven after supply of power supply voltage is stopped.

Then, reading of data from the storage element 100 b is described. Thepotential of the source (the terminal S) of the transistor 102 is apotential at which the state between the source and the drain of thetransistor 102 is changed in accordance with the signal potential. Here,the state between the source and the drain of the transistor 102 is anon-conduction state or a conduction state. Data retained in the storageelement 100 b is read by detection of the state between the source andthe drain of the transistor 102 while the transistor 141 is turned on bya control signal (a control signal input to the terminal X) input to thegate of the transistor 141.

Note that a constant potential (e.g., a low power supply potential suchas a ground potential) can be input to the terminal S (a wiringelectrically connected to the terminal S).

The above is the description of the method for driving the storageelement 100 b.

When data is written to and read from each of the plurality of storageelements 100 b included in the memory element 300 as described above,the memory element 300 can write and read plural pieces of data(configuration data).

(Structure 3 of Storage Element)

A storage element whose structure is different from Structure 1 of thestorage element and Structure 2 of the storage element is described.

A storage element 100 c illustrated in FIG. 1D includes a transistor 104and a capacitor 105. A channel of the transistor 104 is formed in anoxide semiconductor layer. In FIG. 1D, “OS” is written beside thetransistor 104 in order to indicate that the channel of the transistor104 is formed in the oxide semiconductor layer. A gate of the transistor104 is electrically connected to the terminal W. One of a source and adrain of the transistor 104 is electrically connected to the terminal B.The other of the source and the drain of the transistor 104 iselectrically connected to one of a pair of electrodes of the capacitor105. Here, each terminal can be electrically connected to a wiring or anelectrode.

The wiring electrically connected to the terminal W and the wiringelectrically connected to the terminal B are also referred to as a wordline and a bit line, respectively.

Here, a node which is set in a floating state when the transistor 104whose channel is formed in the oxide semiconductor layer is turned offcan be the one of the pair of electrodes of the capacitor 105.

(Method for Driving Storage Element 100 c)

A method for driving the storage element 100 c illustrated in FIG. 1D isdescribed.

First, writing of data to the storage element 100 c is described. Asignal potential (a signal potential input to the terminal B)corresponding to data (configuration data) is input to the one of thepair of electrodes of the capacitor 105 through the transistor 104 whichis turned on by a control signal (a control signal input to the terminalW) input to the gate of the transistor 104. Then, when the transistor104 is turned off by the control signal (the control signal input to theterminal W) input to the gate of the transistor 104, the signalpotential is held in the capacitor 105. In this manner, data can bewritten to the storage element 100 c.

Here, the off-state current of the transistor 104 whose channel isformed in the oxide semiconductor layer is extremely low. When anenhancement (normally off) transistor is used as the transistor 104 anda ground potential is input to the gate of the transistor 104 whilepower supply voltage is not supplied to the storage element 100 c, thetransistor 104 can be turned off while power supply voltage is notsupplied to the storage element 100 c. In this manner, the potential(the signal potential) of the one of the pair of electrodes of thecapacitor 105 can be held for a long time even while power supplyvoltage is not supplied to the storage element 100 c. Thus, the storageelement 100 c can retain data even after supply of power supply voltageis stopped.

Then, reading of data from the storage element 100 c is described. Dataretained in the storage element 100 c is read by detection of the signalpotential held in the one of the pair of electrodes of the capacitor 105(can also be referred to as the amount of electric charge correspondingto the signal potential) from the terminal B while the transistor 104 isturned on by the control signal (the control signal input to theterminal W) input to the gate of the transistor 104.

Note that the other of the pair of electrodes of the capacitor 105 canbe electrically connected to the terminal C. A constant potential (e.g.,a low power supply potential such as a ground potential) can be input tothe terminal C.

The above is the description of the method for driving the storageelement 100 c.

When data is written to and read from each of the plurality of storageelements 100 c included in the memory element 300 as described above,the memory element 300 can write and read plural pieces of data(configuration data).

(Variation of Storage Element)

In Structure 1 of the storage element, Structure 2 of the storageelement, or Structure 3 of the storage element, the storage element mayfurther include a diode, a resistor, or a switch. For example, an analogswitch, a transistor, or the like can be used as the switch. Forexample, in Structure 2 of the storage element, the storage element mayfurther include a capacitor, and one of a pair of electrodes of thecapacitor may be electrically connected to the gate of the transistor102. A constant potential (e.g., a low power supply potential such as aground potential) can be input to the other of the pair of electrodes ofthe capacitor.

Note that the memory element 300 can include memory capacitance forstoring plural sets of configuration data corresponding to the state ofthe logic element 310 (the kind of logic operation performed by thelook-up table 312 and a connection relation selected by the selectioncircuit 314), and given one set of configuration data can be selectedfrom the plural sets of configuration data so that the data can bestored in the configuration memory 311.

The above is one aspect of a programmable LSI in the present invention.

With such a structure, the memory element 300 can continue to hold asignal potential corresponding to data (configuration data) for a longtime after supply of power supply voltage to the memory element 300 isstopped. In short, the memory element 300 can function like anonvolatile memory.

In a programmable LSI including the memory element 300 and the pluralityof logic elements 310, regular refresh operation of the memory element300 is not needed or the frequency of refresh operation can be markedlydecreased; thus, power consumption can be reduced. Further, it is notnecessary to write data to the memory element 300 every time supply ofpower supply voltage to the programmable LSI is started. Thus, theconfiguration time can be shortened. Consequently, the time to serve thepredetermined function of the programmable LSI (the time to start theprogrammable LSI) can be shortened.

In this manner, it is possible to provide a low-power programmable LSIthat can perform configuration (dynamic configuration) at high speed andcan quickly start.

This embodiment can be combined with any of the other embodiments asappropriate.

Embodiment 2

In this embodiment, a more specific aspect of the memory element 300 inEmbodiment 1 is described.

The memory element 300 can include a memory cell array including theplurality of storage elements in Embodiment 1 (having Structure 1 of thestorage element, Structure 2 of the storage element, or Structure 3 ofthe storage element) arranged in matrix.

The memory element 300 can include any of or all of a decoder (a rowdecoder or a column decoder), a precharge circuit, a sense amplifier,and a temporary storage circuit in addition to the memory cell array.Note that some of these circuits can be merged into a single circuit.For example, the sense amplifier may function as a temporary storagecircuit.

The decoder (the row decoder or the column decoder) has a function ofselecting a given storage element in the memory cell array. The memoryelement 300 writes and reads data to and from the storage elementselected by the decoder (the row decoder or the column decoder). Theprecharge circuit has a function of setting (precharging) the potentialof a bit line included in the memory cell array to a predeterminedpotential before data is read from the storage element. Since data canbe read from the storage element after the potential of the bit line isset (precharged) to the predetermined potential by the prechargecircuit, the speed of reading data from the storage element can beincreased. The sense amplifier has a function of amplifying thepotential of the bit line that corresponds to data retained in thestorage element and outputting the amplified potential. Data can be readmore quickly and accurately by the sense amplifier. The temporarystorage circuit is also referred to as a page buffer or a latch circuitand has a function of temporarily retaining data input from the outsideof the memory element. The temporary storage circuit may have a functionof retaining data read from the memory cell array.

FIG. 2 schematically illustrates one aspect of the structure of thememory element 300. In FIG. 2, the memory element 300 includes a memorycell array 400, a column decoder 403, a row decoder 404, a prechargecircuit 402, and a sense amplifier 401.

Note that although FIG. 2 illustrates the structure where the prechargecircuit 402 and the sense amplifier 401 are provided on a side of thememory cell array 400 where the column decoder 403 is provided, thisembodiment is not limited to this structure. Either one or both theprecharge circuit 402 and the sense amplifier 401 may be provided on aside that faces the column decoder 403 with the memory cell array 400provided therebetween. The precharge circuit 402 and the sense amplifier401 may be merged into a single circuit.

Note that the memory element 300 may further include any of or all of adiode, a resistor, an arithmetic circuit (an arithmetic element), and aswitch. As the arithmetic circuit (the arithmetic element), a buffer, aninverter, a NAND circuit, a NOR circuit, a three-state buffer, a clockedinverter, or the like can be used. For example, an analog switch, atransistor, or the like can be used as the switch. Alternatively, anarithmetic circuit (an arithmetic element) to which either one or both aclock signal and an inversion signal of the clock signal are input canbe used as the switch.

(Structure of Memory Cell Array)

A more specific aspect of the memory cell array 400 is described.

(Structure 1 of Memory Cell Array)

The memory cell array 400 can include the plurality of storage elements100 a described in Embodiment 1 with reference to FIG. 1B arranged inmatrix. For example, the memory cell array 400 illustrated in FIG. 3includes m×n (m is a natural number of 2 or more and n is a naturalnumber of 2 or more) storage elements (storage elements 100 a (i, j) (iis a natural number of m or less and j is a natural number of n orless)). Each of the m×n storage elements (the storage elements 100 a (i,j)) can be the storage element 100 a illustrated in FIG. 1B. Each of theplurality of storage elements included in the memory cell array 400 isalso referred to as a memory cell.

In FIG. 3, a wiring BLj that is electrically connected to the terminal Band the terminal D is used in common among the storage elements arrangedin one column. For example, a wiring BL1 that is electrically connectedto the terminal B and the terminal D is used in common among the storageelements arranged in a first column (the storage elements 100 a (1, 1)to 100 a (m, 1)). The wiring BLj can be referred to as a bit line.

In FIG. 3, a wiring SLj that is electrically connected to the terminal Sis used in common among the storage elements arranged in one column. Forexample, a wiring SL1 that is electrically connected to the terminal Sis used in common among the storage elements arranged in the firstcolumn (the storage elements 100 a (1, 1) to 100 a (m, 1)). Note thatthe wiring SLj that is electrically connected to the terminal S can beused in common among all the storage elements that are included in thememory cell array.

In FIG. 3, a wiring WLi that is electrically connected to the terminal Wis used in common among the storage elements arranged in one row. Forexample, a wiring WL1 that is electrically connected to the terminal Wis used in common among the storage elements arranged in a first row(the storage elements 100 a (1, 1) to 100 a (1, n)). The wiring WLi canbe referred to as a write word line.

In FIG. 3, a wiring CLi that is electrically connected to the terminal Cis used in common among the storage elements arranged in one row. Forexample, a wiring CL1 that is electrically connected to the terminal Cis used in common among the storage elements arranged in the first row(the storage elements 100 a (1, 1) to 100 a (1, n)). The wiring CLi canbe referred to as a read word line.

However, this embodiment is not limited to this structure. The pluralityof wirings BLj and the plurality of wirings SLj may be provided in thestorage elements arranged in one column, or the plurality of wirings WLiand the plurality of wirings CLi may be provided in the storage elementsarranged in one row.

Each wiring can be used in common in the structure illustrated in FIG.3. When each wiring is used in common, the memory cell array 400 can beminiaturized and highly integrated.

In the memory cell array 400 illustrated in FIG. 3, data is selectivelywritten to the storage element (the storage element 100 a (i, j)) in arow specified by a signal input to the wiring WLi. Specifically, thetransistors 101 in the storage elements electrically connected to thewiring BLj other than the storage element to which data is written areturned off and the transistor 101 in the storage element to which datais written is turned on by a signal input to the wiring WLi. In thismanner, the data is written to the specified storage element. Further,the data is selectively read from the storage element (the storageelement 100 a (i, j)) in a row specified by a signal input to the wiringCLi. Specifically, the transistors 102 in the storage elementselectrically connected to the wiring BLj other than the storage elementfrom which data is read are turned off (regardless of data retained) andthe state of the transistor 102 in the storage element from which datais read is changed in accordance with the data (the signal potential)retained. In this manner, the data is read from the specified storageelement. Note that a method for writing and reading data to and from aspecified storage element is similar to the method for driving thestorage element 100 a in the above embodiment; thus, description thereofis omitted.

(Structure 2 of Memory Cell Array)

The memory cell array 400 can include the plurality of storage elements100 a described in Embodiment 1 with reference to FIG. 1B arranged inmatrix. For example, the memory cell array 400 illustrated in FIG. 6Bincludes m×n (m is a natural number of 2 or more and n is a naturalnumber of 2 or more) storage elements (storage elements 100 a (i, j) (iis a natural number of m or less and j is a natural number of n orless)). Each of the m×n storage elements (the storage elements 100 a (i,j)) can be the storage element 100 a illustrated in FIG. 1B. Each of theplurality of storage elements included in the memory cell array 400 isalso referred to as a memory cell.

In the structure illustrated in FIG. 6B, in a storage element positionedat one of ends of a storage element group 400 _(—) j (the storageelement 100 a (1, j)), the terminal D is electrically connected to thewiring BLj, and the terminal B is electrically connected to the wiringBLj through a transistor 181 functioning as a switch. In a storageelement positioned at the other end of the storage element group 400_(—) j (the storage element 100 a (m, j)), the terminal S iselectrically connected to the wiring SLj through a transistor 182functioning as a switch. Note that the transistor 182 may be eliminatedand the terminal S may be directly connected to the wiring SLj in thestorage element positioned at the other end of the storage element group400 _(—) j (the storage element 100 a (m, j)). In the storage elementsother than the storage elements positioned at the ends of the storageelement group 400 _(—) j, the terminal S of one of adjacent storageelements is electrically connected to the terminal B of the other of theadjacent storage elements, and a terminal F of the one of the adjacentstorage elements is electrically connected to the terminal D of theother of the adjacent storage elements. Here, as illustrated in FIG. 6A,the terminal F is a terminal provided in a node that is electricallyconnected to the gate of the transistor 102. Thus, in the structureillustrated in FIG. 6B, the transistors 102 included in the storageelement group 400 _(—) j can be regarded as being electrically connectedin series and the transistors 101 included in the storage element group400 _(—) j can be regarded as being electrically connected in series.The wiring BLj can be referred to as a bit line.

In FIG. 6B, the wiring WLi that is electrically connected to theterminal W is used in common among the storage elements arranged in onerow. For example, the wiring WL1 that is electrically connected to theterminal W is used in common among the storage elements arranged in afirst row (the storage elements 100 a (1, 1) to 100 a (1, n)). Thewiring WLi can be referred to as a write word line.

In FIG. 6B, the wiring CLi that is electrically connected to theterminal C is used in common among the storage elements arranged in onerow. For example, the wiring CL1 that is electrically connected to theterminal C is used in common among the storage elements arranged in thefirst row (the storage elements 100 a (1, 1) to 100 a (1, n)). Thewiring CLi can be referred to as a read word line.

However, this embodiment is not limited to this structure. The pluralityof wirings WLi and the plurality of wirings CLi may be provided in thestorage elements arranged in one row.

Each wiring can be used in common in the structure illustrated in FIG.6B. When each wiring is used in common, the memory cell array 400 can beminiaturized and highly integrated.

Note that although FIG. 6B illustrates the structure of the memory cellarray 400 in which the storage element group 400 _(—) j is provided forone row, this embodiment is not limited to this structure. In the memorycell array 400, the storage element groups 400 _(—) j may be arranged inmatrix.

In the memory cell array 400 illustrated in FIG. 6B, data is selectivelywritten to the storage element (the storage element 100 a (i, j)) in arow specified by a signal input to the wiring WLi. Specifically, data issequentially written to the storage elements from the storage element ona side closer to the wiring SLj. The transistors 101 in the storageelement to which data is written and all the storage elements providedon a side closer to the wiring BLj than the storage element are turnedon by a signal input to the wiring WLi. Further, the transistors 101 inall the storage elements provided on a side closer to the wiring SLjthan the storage element to which data is written are turned off by asignal input to the wiring WLi. In this manner, a signal potentialcorresponding to data is input from the wiring BLj to the storageelement to which data is written. Note that either one or both thetransistors 181 and 182 are off while data is written. Further, the datais selectively read from the storage element (the storage element 100 a(i, j)) in a row specified by a signal input to the wiring CLi.Specifically, the transistors 102 in the storage elements electricallyconnected to the wiring BLj other than the storage element from whichdata is read are turned on (regardless of data retained) and the stateof the transistor 102 in the storage element from which data is read ischanged in accordance with the data (the signal potential) retained.Note that the transistors 181 and 182 are on while data is read. In thismanner, the data is read from the specified storage element. Note that amethod for writing and reading data to and from a specified storageelement is similar to the method for driving the storage element 100 ain the above embodiment; thus, description thereof is omitted.

(Structure 3 of Memory Cell Array)

The memory cell array 400 can include the plurality of storage elements100 b described in Embodiment 1 with reference to FIG. 1C arranged inmatrix. For example, the memory cell array 400 illustrated in FIG. 4includes m×n (m is a natural number of 2 or more and n is a naturalnumber of 2 or more) storage elements (storage elements 100 b (i, j) (iis a natural number of m or less and j is a natural number of n orless)). Each of the m×n storage elements (the storage elements 100 b (i,j)) can be the storage element 100 b illustrated in FIG. 1C. Each of theplurality of storage elements included in the memory cell array 400 isalso referred to as a memory cell.

In FIG. 4, the wiring BLj that is electrically connected to the terminalB and the terminal D is used in common among the storage elementsarranged in one column. For example, the wiring BL1 that is electricallyconnected to the terminal B and the terminal D is used in common amongthe storage elements arranged in a first column (the storage elements100 b (1, 1) to 100 b (m, 1)). The wiring BLj can be referred to as abit line.

In FIG. 4, the wiring SLj that is electrically connected to the terminalS is used in common among the storage elements arranged in one column.For example, the wiring SL1 that is electrically connected to theterminal S is used in common among the storage elements arranged in thefirst column (the storage elements 100 b (1, 1) to 100 b (m, 1)). Notethat the wiring SLj that is electrically connected to the terminal S canbe used in common among all the storage elements that are included inthe memory cell array.

In FIG. 4, the wiring WLi that is electrically connected to the terminalW is used in common among the storage elements arranged in one row. Forexample, the wiring WL1 that is electrically connected to the terminal Wis used in common among the storage elements arranged in a first row(the storage elements 100 b (1, 1) to 100 b (1, n)). The wiring WLi canbe referred to as a write word line.

In FIG. 4, a wiring XLi that is electrically connected to the terminal Xis used in common among the storage elements arranged in one row. Forexample, a wiring XL1 that is electrically connected to the terminal Xis used in common among the storage elements arranged in the first row(the storage elements 100 b (1, 1) to 100 b (1, n)). The wiring XLi canbe referred to as a read word line.

However, this embodiment is not limited to this structure. The pluralityof wirings BLj and the plurality of wirings SLj may be provided in thestorage elements arranged in one column, or the plurality of wirings WLiand the plurality of wirings XLi may be provided in the storage elementsarranged in one row.

Each wiring can be used in common in the structure illustrated in FIG.4. When each wiring is used in common, the memory cell array 400 can beminiaturized and highly integrated.

In the memory cell array 400 illustrated in FIG. 4, data is selectivelywritten to the storage element (the storage element 100 b (i, j)) in arow specified by a signal input to the wiring WLi. Specifically, thetransistors 101 in the storage elements electrically connected to thewiring BLj other than the storage element to which data is written areturned off and the transistor 101 in the storage element to which datais written is turned on by a signal input to the wiring WLi. In thismanner, the data is selectively written. Further, the data isselectively read from the storage element (the storage element 100 b (i,j)) in a row specified by a signal input to the wiring XLi.Specifically, the transistors 141 in the storage elements electricallyconnected to the wiring BLj other than the storage element from whichdata is read are turned off and the transistor 141 in the storageelement from which data is read is turned on. In this manner, the datais selectively read. Note that a method for writing and reading data toand from a specified storage element is similar to the method fordriving the storage element 100 b in the above embodiment; thus,description thereof is omitted.

(Structure 1 of Memory Cell Array)

The memory cell array 400 can include the plurality of storage elements100 c described in Embodiment 1 with reference to FIG. 1D arranged inmatrix. For example, the memory cell array 400 illustrated in FIG. 5includes m×n (m is a natural number of 2 or more and n is a naturalnumber of 2 or more) storage elements (storage elements 100 c (i, j) (iis a natural number of m or less and j is a natural number of n orless)). Each of the m×n storage elements (the storage elements 100 c (i,j)) can be the storage element 100 c illustrated in FIG. 1D. Each of theplurality of storage elements included in the memory cell array 400 isalso referred to as a memory cell.

In FIG. 5, the wiring BLj that is electrically connected to the terminalB is used in common among the storage elements arranged in one column.For example, the wiring BL1 that is electrically connected to theterminal B is used in common among the storage elements arranged in afirst column (the storage elements 100 c (1, 1) to 100 c (m, 1)). Thewiring BLj can be referred to as a bit line.

In FIG. 5, the wiring WLi that is electrically connected to the terminalW is used in common among the storage elements arranged in one row. Forexample, the wiring WL1 that is electrically connected to the terminal Wis used in common among the storage elements arranged in a first row(the storage elements 100 c (1, 1) to 100 c (1, n)). The wiring WLi canbe referred to as a word line.

However, this embodiment is not limited to this structure. The pluralityof wirings BLj may be provided in the storage elements arranged in onecolumn, or the plurality of wirings WLi may be provided in the storageelements arranged in one row. In the m×n storage elements (the storageelements 100 c (i, j)), the terminals C may be electrically connected toone electrode or one wiring or may be electrically connected todifferent electrodes or different wirings.

Each wiring can be used in common in the structure illustrated in FIG.5. When each wiring is used in common, the memory cell array 400 can beminiaturized and highly integrated.

In the memory cell array 400 illustrated in FIG. 5, data is selectivelywritten to and read from the storage element (the storage element 100 c(i, j)) in a row specified by a signal input to the wiring WLi.Specifically, the transistors 104 in the storage elements other than thestorage element to which data is written are turned off and thetransistor 104 in the storage element to which data is written is turnedon by a signal input to the wiring WLi; thus, the data is selectivelywritten. Further, the transistors 104 in the storage elements other thanthe storage element from which data is read are turned off and thetransistor 104 in the storage element from which data is read is turnedon; thus, the data is selectively read. A method for writing and readingdata to and from a specified storage element is similar to the methodfor driving the storage element 100 c in the above embodiment; thus,description thereof is omitted.

(Variation of Memory Cell Array)

Note that in Structure 1 of the memory cell array, Structure 2 of thememory cell array, Structure 3 of the memory cell array, or Structure 4of the memory cell array, the memory cell array may further include anyof or all of a diode, a resistor, an arithmetic circuit (an arithmeticelement), and a switch. As the arithmetic circuit (the arithmeticelement), a buffer, an inverter, a NAND circuit, a NOR circuit, athree-state buffer, a clocked inverter, or the like can be used. Forexample, an analog switch, a transistor, or the like can be used as theswitch. Alternatively, an arithmetic circuit (an arithmetic element) towhich either one or both a clock signal and an inversion signal of theclock signal are input can be used as the switch.

Note that the memory element 300 can include memory capacitance forstoring plural sets of configuration data corresponding to the state ofthe logic element 310 (the kind of logic operation performed by thelook-up table 312 and a connection relation selected by the selectioncircuit 314), and given one set of configuration data can be selectedfrom the plural sets of configuration data so that the data can bestored in the configuration memory 311. In that case, when one set ofconfiguration data is stored in the storage elements provided in one rowof the memory cell array 400, the one set of configuration data can beread by reading of the data from one row. Thus, the configuration timecan be shortened.

(Structure of Sense Amplifier)

Next, a specific aspect of the structure of the sense amplifier 401 inFIG. 2 is described. The sense amplifier 401 can include a plurality ofsense amplifiers. The sense amplifier can be provided per bit lineprovided in the memory cell array 400. The potential of the bit line canbe amplified by the sense amplifier and can be detected from an outputterminal of the sense amplifier. Here, the potential of the bit line isbased on a signal potential held in a storage element that iselectrically connected to the bit line and from which data is read.Thus, a signal output from the output terminal of the sense amplifiercorresponds to data retained in the storage element from which data isread. In this manner, data retained in each storage element in thememory cell array 400 can be detected by the sense amplifier 401.

The sense amplifier can be formed using an inverter or a buffer. Forexample, the sense amplifier can be formed using a latch circuit (alatch sense amplifier). Alternatively, the sense amplifier can be formedusing a comparator. For example, the sense amplifier can be formed usinga differential amplifier (an operational amplifier).

In particular, in the case where the storage element 100 c with thestructure illustrated in FIG. 1D is used as the storage element includedin the memory cell array 400, it is preferable to use a latch senseamplifier as the sense amplifier 401. The latch sense amplifier canamplify an input signal and can hold the amplified signal. Thus, evenwhen electric charge corresponding to a signal potential held in thecapacitor 105 in the storage element 100 c is changed (damaged) at thetime of reading data from the storage element 100 c, a signalcorresponding to the signal potential can be held in the latch senseamplifier and can be written to the storage element 100 c again.

A more specific aspect of the sense amplifier 401 is described withreference to FIGS. 8A to 8D and FIGS. 9A to 9G.

(Structure 1 of Sense Amplifier)

FIG. 8A illustrates an example of the sense amplifier 401 includingbuffers 441. The sense amplifier 401 includes the n buffers 441, and then buffers 441 are provided in bit lines BL1 to BLn provided in thememory cell array 400. The potentials of the bit lines BL1 to BLn can beamplified by the n buffers 441 and can be output from output terminalsOUT1 to OUTn. Here, the potential of the bit line is based on a signalpotential held in a storage element that is electrically connected tothe bit line and from which data is read. Thus, a signal output from theoutput terminal of the buffer 441 corresponds to data retained in thestorage element from which data is read. In this manner, data retainedin each storage element in the memory cell array 400 can be detected bythe sense amplifier 401 including the n buffers 441.

(Structure 2 of Sense Amplifier)

FIG. 8B illustrates an example of the sense amplifier 401 includingcomparators 442. The sense amplifier 401 includes the n comparators 442,and the n comparators 442 are provided in the bit lines BL1 to BLnprovided in the memory cell array 400. The potentials of the bit linesBL1 to BLn can be compared to a reference potential (indicated by ref inFIG. 8B) by the n comparators 442 and the comparison results can beoutput from the output terminals OUT1 to OUTn. Here, the potential ofthe bit line is based on a signal potential held in a storage elementthat is electrically connected to the bit line and from which data isread. Thus, a signal output from the output terminal of the comparator442 corresponds to data retained in the storage element from which datais read. In this manner, data retained in each storage element in thememory cell array 400 can be detected by the sense amplifier 401including the n comparators 442.

(Structure 3 of Sense Amplifier)

FIGS. 8C and 8D each illustrate an example of the sense amplifier 401including latch circuits 443. The latch circuit 443 can be formed usingan inverter 444 and an inverter 445, for example. The sense amplifier401 includes the n latch circuits 443, and the n latch circuits 443 areprovided in the bit lines BL1 to BLn provided in the memory cell array400. The potentials of the bit lines BL1 to BLn can be amplified by then latch circuits 443 and can be output from the output terminals OUT1 toOUTn. Here, the potential of the bit line is based on a signal potentialheld in a storage element that is electrically connected to the bit lineand from which data is read. Thus, a signal (an amplified signal) outputfrom the output terminal of the latch circuit 443 corresponds to dataretained in the storage element from which data is read. In this manner,data retained in each storage element in the memory cell array 400 canbe detected by the sense amplifier 401 including the n latch circuits443.

Further, each of the n latch circuits 443 can hold an amplified signal.Thus, even when data is damaged at the time of reading the data from thestorage element in the memory cell array 400, a corresponding signal canbe held in the n latch circuits 443 and can be written to the storageelement again.

For example, in the case where the storage element 100 c with thestructure illustrated in FIG. 1D is used as the storage element includedin the memory cell array 400, it is preferable to use the senseamplifier 401 with the structure illustrated in FIG. 8C or 8D. Even whenelectric charge corresponding to a signal potential held in thecapacitor 105 in the storage element 100 c is changed (damaged) at thetime of reading data from the storage element 100 c, a signalcorresponding to the signal potential can be held in the latch circuit443 and can be written to the storage element 100 c again. Note that thesignal held in the latch circuit 443 can be written to the storageelement 100 c again through an arithmetic element such as an inverter.Further, when the drive capability of the plurality of invertersincluded in the latch circuit 443 can be set as appropriate, the latchcircuit 443 can inhibit damage to the data at the time of reading thedata from the storage element 100 c from which data is read. The drivecapability of the inverter can be increased when the channel width (thegate width) of a transistor included in the inverter is increased, andthe drive capability can be decreased when the channel width (the gatewidth) is decreased. For example, when the drive capability of theinverter 445 included in the latch circuit 443 in FIG. 8C and the drivecapability of the inverter 444 included in the latch circuit 443 in FIG.8D are decreased, specifically, when the channel widths (the gatewidths) of transistors included in these inverters are decreased, thelatch circuits 443 can inhibit damage to the data at the time of readingthe data from the storage element 100 c from which data is read.

Since the sense amplifier 401 that includes the latch circuit 443illustrated in FIG. 8C or 8D has a function of holding a signal asdescribed above, the sense amplifier 401 can be used as a temporarystorage circuit. For example, the sense amplifier 401 that includes thelatch circuit 443 can be used as a circuit (e.g., a page buffer) fortemporarily retaining data input from the outside of the memory element300.

(Variation of Sense Amplifier)

Note that the sense amplifier may further include any of or all of adiode, a resistor, an arithmetic circuit (an arithmetic element), and aswitch. As the arithmetic circuit (the arithmetic element), a buffer, aninverter, a NAND circuit, a NOR circuit, a three-state buffer, a clockedinverter, or the like can be used. For example, an analog switch, atransistor, or the like can be used as the switch. Alternatively, anarithmetic circuit (an arithmetic element) to which either one or both aclock signal and an inversion signal of the clock signal are input canbe used as the switch.

FIG. 9A schematically illustrates the structure of each sense amplifierin the sense amplifier 401 described with reference to FIGS. 8A to 8D. Asense amplifier 1451 corresponds to the buffer 441 in FIG. 8A, thecomparator 442 in FIG. 8B, or the latch circuit 443 in FIG. 8C or 8D.The symbol BLx indicates any one of the bit lines BL1 to BLn, and thesymbol OUTx indicates any one of the output terminals OUT1 to OUTn. Adiode, a resistor, an arithmetic circuit (an arithmetic element), or aswitch can be added to the sense amplifier with the structure in FIG.9A.

As illustrated in FIG. 9B, an element 1450 may be provided between thebit line BLx and the sense amplifier 1451. A switch can be used as theelement 1450, for example.

As illustrated in FIG. 9C, a terminal VR may be electrically connectedto the bit line BLx through the element 1450. A switch, a resistor, or adiode can be used as the element 1450, for example.

FIG. 9D is an example in which a switch 1452 is provided as the element1450 in FIG. 9C. FIG. 9F is an example in which a transistor whose gateis supplied with a control signal PSW is used as the switch 1452. In thestructure illustrated in FIG. 9D or 9F, when the switch 1452 is turnedon by application of a predetermined potential to the terminal VR, thepredetermined potential can be precharged to the bit line BLx. In thismanner, the sense amplifier 401 can also be used as the prechargecircuit 402.

FIG. 9E is an example in which a load 1453 is provided as the element1450 in FIG. 9C. FIG. 9G is an example in which a diode-connectedtransistor is used as the load 1453. In the structure illustrated inFIG. 9E or 9G, in the case where the transistor 102 is off by a signalpotential held at the time of reading data from the storage element 100a illustrated in FIG. 1B or the storage element 100 b illustrated inFIG. 1C, the potential of the terminal VR can be input to the senseamplifier.

(Structure of Precharge Circuit)

Next, a specific aspect of the precharge circuit 402 in FIG. 2 isdescribed with reference to FIG. 7. In FIG. 7, the precharge circuit 402includes a precharge line PR and a plurality of switches 446. Theswitches 446 can be provided in the bit lines BL1 to BLn in the memorycell array 400. An electrical connection between each bit line and theprecharge line PR is selected by each switch 446, and the potential (theprecharge potential) of the precharge line PR can be input to each bitline. For example, an analog switch, a transistor, or the like can beused as the switch 446. Alternatively, an arithmetic circuit (anarithmetic element) to which either one or both a clock signal and aninversion signal of the clock signal are input can be used as the switch446.

Note that the precharge circuit 402 may further include any of or all ofa diode, a resistor, an arithmetic circuit (an arithmetic element), anda different switch. As the arithmetic circuit (the arithmetic element),a buffer, an inverter, a NAND circuit, a NOR circuit, a three-statebuffer, a clocked inverter, or the like can be used.

The above is the description of variations of the memory element.

Note that one embodiment of the present invention can be a storagedevice whose structure is similar to the structure of the memory elementor a semiconductor device including the storage device.

This embodiment can be combined with any of the other embodiments asappropriate.

Embodiment 3

In this embodiment, one aspect of the configuration memory 311 includedin the logic element 310 is described. The configuration memory 311 canbe formed using, for example, a latch circuit or a capacitor.

FIGS. 10A and 10B each illustrate an example in which a storage element501 or a storage element 502 includes a latch circuit as the storageelement included in the configuration memory 311. The latch circuit canbe formed using an inverter 511 and an inverter 512. Data input from aninput terminal IN is retained in the storage element 501 and the storageelement 502, and is output from an output terminal OUT.

In the case where the configuration memory 311 is formed using thestorage element 501 or the storage element 502, the configuration memory311 can be used as the sense amplifier 401 or part of the senseamplifier 401. In other words, the structure of the configuration memory311 and the structure of the sense amplifier 401 can be used in commonpartly or entirely.

FIG. 10C is an example in which a storage element 503 including acapacitor 513 is used as the storage element included in theconfiguration memory 311. The storage element 503 can store data when asignal potential input is held in one of a pair of electrodes of thecapacitor 513. In this manner, data input from the input terminal IN isretained in the storage element 503 and is output from the outputterminal OUT. Note that a potential V0 can be applied to the other ofthe pair of electrodes of the capacitor 513. The potential V0 can be alow power supply potential (e.g., a ground potential).

Note that when a specific word line or a specific read word line iscontinuously selected in the memory element 300, configuration data canbe continuously input from the memory element 300 to the configurationmemory 311. At this time, in the case where the storage element 503including the capacitor 513 is used as the storage element included inthe configuration memory 311, the capacitance of the capacitor 513 canbe decreased. For example, it is possible not to provide theconfiguration memory 311 by using parasitic capacitance instead of thecapacitor 513. Thus, the logic element 310 can be further miniaturized.

In particular, the memory element 300 stores plural sets ofconfiguration data corresponding to the state of the logic element (thekind of logic operation performed by the look-up table 312 and aconnection relation selected by the selection circuit 314) and selectsgiven one set of configuration data from the plurality of sets ofconfiguration data so that the data can be stored in the configurationmemory 311. Here, when an output terminal of the memory element 300(corresponding to an output terminal of the sense amplifier) is providedto correspond to a storage element in the configuration memory 311 andone set of configuration data is stored in the memory elements 300 inone row, predetermined configuration can be performed by reading of datafrom the memory elements 300 in one row. In this manner, theconfiguration can be performed at high speed and dynamic configurationcan be easily performed.

This embodiment can be combined with any of the other embodiments asappropriate.

Embodiment 4

In this embodiment, one aspect of the look-up table 312 included in thelogic element 310 is described. The look-up table 312 can be formedusing a plurality of multiplexers. Further, configuration data can beinput to any of input terminals and control terminals of the pluralityof multiplexers.

FIG. 11A illustrates one aspect of the look-up table 312 included in thelogic element 310.

In FIG. 11A, the look-up table 312 is formed using seven two-inputmultiplexers (a multiplexer 31, a multiplexer 32, a multiplexer 33, amultiplexer 34, a multiplexer 35, a multiplexer 36, and a multiplexer37). Input terminals of the multiplexers 31 to 34 correspond to inputterminals M1 to M8 of the look-up table 312. Control terminals of themultiplexers 31 to 34 are electrically connected to each other andcorrespond to an input terminal IN3 of the look-up table 312. Outputterminals of the multiplexers 31 and 32 are electrically connected totwo input terminals of the multiplexer 35. Output terminals of themultiplexers 33 and 34 are electrically connected to two input terminalsof the multiplexer 36. Control terminals of the multiplexers 35 and 36are electrically connected to each other and correspond to an inputterminal IN2 of the look-up table 312. Output terminals of themultiplexers 35 and 36 are electrically connected to two input terminalsof the multiplexer 37. A control terminal of the multiplexer 37corresponds to an input terminal IN1 of the look-up table 312. An outputterminal of the multiplexer 37 corresponds to an output terminal OUT ofthe look-up table 312.

When configuration data is input from each storage element in theconfiguration memory 311 to any of the input terminals M1 to M8 and IN1to IN3, the kind of arithmetic processing performed by the look-up table312 can be specified.

For example, in the case where data (“0”, “1”, “0”, “1”, “0”, “1”, “1”,and “1”) is input to the input terminals M1 to M8 of the look-up table312 in FIG. 11A, the function of an equivalent circuit illustrated inFIG. 11C can be obtained. Here, “A”, “B”, and “C” are assigned to theinput terminals IN1 to IN3, and “Y” is assigned to the output terminalOUT.

FIG. 11B illustrates another aspect of the look-up table 312 included inthe logic element 310.

In FIG. 11B, the look-up table 312 is formed using three two-inputmultiplexers (a multiplexer 41, a multiplexer 42, and a multiplexer 43)and a two-input OR circuit 44. Input terminals of the multiplexers 41and 42 correspond to the input terminals M1 to M4 of the look-up table312. A control terminal of the multiplexer 41 corresponds to the inputterminal IN1 of the look-up table 312. A control terminal of themultiplexer 42 corresponds to the input terminal IN2 of the look-uptable 312. Output terminals of the multiplexers 41 and 42 areelectrically connected to two input terminals of the multiplexer 43. Twoinput terminals of the OR circuit 44 correspond to the input terminal IN3 and an input terminal IN4 of the look-up table 312, and an output ofthe OR circuit 44 is input to a control terminal of the multiplexer 43.An output terminal of the multiplexer 43 corresponds to the outputterminal OUT of the look-up table 312.

When configuration data is input from each storage element in theconfiguration memory 311 to any of the input terminals M1 to M4 and IN1to IN4, the kind of arithmetic processing performed by the look-up table312 can be specified.

For example, in the case where data (“0”, “1”, “0”, “0”, and “0”) isinput to the input terminals M1, M3, M4, IN2, and IN4 of the look-uptable 312 in FIG. 11B, the function of the equivalent circuitillustrated in FIG. 11C can be obtained. Here, “A”, “B”, and “C” areassigned to the input terminals IN1, M2, and IN3, and “Y” is assigned tothe output terminal OUT.

Note that although FIGS. 11A and 11B each illustrate the example of thelook-up table formed using two-input multiplexers, this embodiment isnot limited thereto. It is possible to use a look-up table formed usingmultiplexers each having three or more inputs.

Note that the look-up table may further include any of or all of adiode, a resistor, an arithmetic circuit (an arithmetic element), and aswitch in addition to the multiplexers. As the arithmetic circuit (thearithmetic element), a buffer, an inverter, a NAND circuit, a NORcircuit, a three-state buffer, a clocked inverter, or the like can beused. For example, an analog switch, a transistor, or the like can beused as the switch. Alternatively, an arithmetic circuit (an arithmeticelement) to which either one or both a clock signal and an inversionsignal of the clock signal are input can be used as the switch.

Although the case where three-input and one-output arithmetic processingas illustrated in FIG. 11C is performed using the look-up table 312illustrated in FIG. 11A or FIG. 11B, this embodiment is not limitedthereto. When the look-up table and configuration data to be input aredetermined as appropriate, arithmetic processing having four or moreinputs and two or more outputs can be performed.

This embodiment can be combined with any of the other embodiments asappropriate.

Embodiment 5

In this embodiment, one aspect of the selection circuit 314 included inthe logic element 310 is described. The selection circuit 314 can beformed using a multiplexer or a switch. Further, configuration data canbe input to a control terminal of the multiplexer or the switch.

FIG. 12A illustrates one aspect of the selection circuit 314 included inthe logic element 310.

In FIG. 12A, the selection circuit 314 is formed using an eight-inputmultiplexer 51. When 3-bit configuration data is input to a controlterminal M, any of signals input to input terminals IN1 to IN8 of themultiplexer 51 can be selectively output from an output terminal OUT.

Note that although FIG. 12A illustrates the example of the selectioncircuit formed using an eight-input multiplexer, this embodiment is notlimited thereto. It is possible to use a selection circuit formed usinga multiplexer having nine or more inputs. The selection circuit mayfurther include any of or all of a diode, a resistor, an arithmeticcircuit (an arithmetic element), and a switch in addition to themultiplexer. As the arithmetic circuit (the arithmetic element), abuffer, an inverter, a NAND circuit, a NOR circuit, a three-statebuffer, a clocked inverter, or the like can be used. For example, ananalog switch, a transistor, or the like can be used as the switch.Alternatively, an arithmetic circuit (an arithmetic element) to whicheither one or both a clock signal and an inversion signal of the clocksignal are input can be used as the switch.

FIG. 12B illustrates another aspect of the selection circuit 314included in the logic element 310.

In FIG. 12B, the selection circuit 314 includes transistors 61 to 64each functioning as a switch. A gate of the transistor 61 iselectrically connected to the terminal M1. A gate of the transistor 62is electrically connected to the terminal M2. A gate of the transistor63 is electrically connected to the terminal M3. A gate of thetransistor 64 is electrically connected to the terminal M4. The inputterminal IN1 is electrically connected to the output terminal OUTthrough a source and a drain of the transistor 61. The input terminalIN2 is electrically connected to the output terminal OUT through asource and a drain of the transistor 62. The input terminal IN3 iselectrically connected to the output terminal OUT through a source and adrain of the transistor 63. The input terminal IN4 is electricallyconnected to the output terminal OUT through a source and a drain of thetransistor 64. In FIG. 12B, when 4-bit configuration data is input tothe input terminals M1 to M4, any of signals input to the inputterminals IN1 to IN4 can be selectively output from the output terminalOUT. Note that when two or more of the transistors 61 to 64 are turnedon at the same time, two or more of the input terminals IN1 to IN4 canbe electrically connected to each other.

Note that given elements each functioning as a switch can be used as asubstitute for the transistors 61 to 64.

Although FIG. 12B illustrates the example of the four-input andone-output selection circuit, this embodiment is not limited thereto. Itis possible to use a selection circuit having five or more inputs andtwo or more outputs. The selection circuit may further include any of orall of a multiplexer, a diode, a resistor, an arithmetic circuit (anarithmetic element), and a switch. As the arithmetic circuit (thearithmetic element), a buffer, an inverter, a NAND circuit, a NORcircuit, a three-state buffer, a clocked inverter, or the like can beused. For example, an analog switch, a transistor, or the like can beused as the switch. Alternatively, an arithmetic circuit (an arithmeticelement) to which either one or both a clock signal and an inversionsignal of the clock signal are input can be used as the switch.

This embodiment can be combined with any of the other embodiments asappropriate.

Embodiment 6

A method for forming the storage element 100 a illustrated in FIG. 1B isdescribed. Note that a method for forming the terminal B and theterminal D that are electrically connected to each other is described.The transistor 102 is a transistor whose channel is formed usingsilicon. In this embodiment, a method for forming the storage element100 a is described giving the transistor 102, the transistor 101 whosechannel is formed in an oxide semiconductor layer, and the capacitor 103as examples.

Note that the transistor 101 and the transistor 102 in the storageelement 100 b can be formed in a manner similar to that of thetransistor 101 and the transistor 102 in the storage element 100 a. Thetransistor 104 and the capacitor 105 in the storage element 100 c can beformed in a manner similar to that of the transistor 101 and thecapacitor 103 in the storage element 100 a.

Further, other transistors and other capacitors included in theprogrammable LSI can be formed in a manner similar to that of thetransistor 101, the transistor 102, and the capacitor 103 in the storageelement 100 a. For example, transistors and the like included in theconfiguration memory, the look-up table, the selection circuit, and theregister in the logic element can be formed in a manner similar to thatof the transistor 101, the transistor 102, and the capacitor 103.

First, as illustrated in FIG. 13A, an insulating film 701 and asemiconductor film 702 that is separated from a single crystalsemiconductor substrate are formed over a substrate 700.

Although there is no particular limitation on a material which can beused as the substrate 700, it is necessary that the material have atleast heat resistance high enough to withstand heat treatment to beperformed later. For example, a glass substrate formed by a fusionprocess or a float process, a quartz substrate, a semiconductorsubstrate, a ceramic substrate, or the like can be used as the substrate700. In the case where the temperature of the heat treatment to beperformed later is high, a glass substrate whose strain point is 730° C.or higher is preferably used as a glass substrate.

In this embodiment, an example in which the semiconductor film 702 isformed using single crystal silicon is given below as the method forforming the transistor 102. Note that a specific example of a method forforming the single crystal semiconductor film 702 is briefly described.First, an ion beam including ions which are accelerated by an electricfield enters a bond substrate which is the single crystal semiconductorsubstrate and a fragile layer which is fragile because of local disorderof the crystal structure is formed in a region at a certain depth from asurface of the bond substrate. The depth at which the fragile layer isformed can be adjusted by the acceleration energy of the ion beam andthe angle at which the ion beam enters. Then, the bond substrate and thesubstrate 700 which is provided with the insulating film 701 areattached to each other so that the insulating film 701 is sandwichedtherebetween. After the bond substrate and the substrate 700 overlapwith each other, a pressure of approximately 1 to 500 N/cm², preferably11 to 20 N/cm² is applied to part of the bond substrate and part of thesubstrate 700 so that the substrates are attached to each other. Whenthe pressure is applied to part of the bond substrate and part of thesubstrate 700, bonding between the bond substrate and the insulatingfilm 701 starts from the parts, which results in bonding of the entiresurface where the bond substrate and the insulating film 701 are inclose contact with each other. After that, heat treatment is performed,so that microvoids that exist in the fragile layer are combined, and thevolume of the microvoids is increased. Accordingly, a single crystalsemiconductor film which is part of the bond substrate is separated fromthe bond substrate along the fragile layer. The temperature of the heattreatment is set so as not to exceed the strain point of the substrate700. Then, the single crystal semiconductor film is processed into adesired shape by etching or the like, so that the semiconductor film 702can be formed.

In order to control the threshold voltage, an impurity element impartingp-type conductivity, such as boron, aluminum, or gallium, or an impurityelement imparting n-type conductivity, such as phosphorus or arsenic,may be added to the semiconductor film 702. An impurity element forcontrolling the threshold voltage may be added to the semiconductor filmwhich is not etched to have a predetermined shape or may be added to thesemiconductor film 702 which is etched to have a predetermined shape.Alternatively, the impurity element for controlling the thresholdvoltage may be added to the bond substrate. Alternatively, the impurityelement may be added to the bond substrate in order to roughly controlthe threshold voltage, and the impurity element may be further added tothe semiconductor film which is not etched to have a predetermined shapeor the semiconductor film 702 which is etched to have a predeterminedshape in order to finely control the threshold voltage.

Note that although the single crystal semiconductor film is used in thisembodiment, the present invention is not limited to this structure. Forexample, a polycrystalline, microcrystalline, or amorphous semiconductorfilm which is formed over the insulating film 701 by vapor depositionmay be used. Alternatively, the semiconductor film may be crystallizedby a known technique. As a known crystallization technique, lasercrystallization using a laser beam or crystallization using a catalyticelement can be used. Alternatively, crystallization using a catalyticelement and laser crystallization can be used in combination. When aheat-resistant substrate such as a quartz substrate is used,crystallization combined with thermal crystallization using anelectrically heated oven, lamp heating crystallization using infraredlight, crystallization using a catalytic element, or high-temperatureheating at approximately 950° C. may be used.

Next, as illustrated in FIG. 13B, a gate insulating film 703 is formedover the semiconductor film 702. Then, a mask 705 is formed over thegate insulating film 703 and an impurity element imparting conductivityis added to part of the semiconductor film 702, so that an impurityregion 704 is formed.

The gate insulating film 703 can be formed by oxidation or nitriding ofa surface of the semiconductor film 702 by high-density plasmatreatment, heat treatment, or the like. The high-density plasmatreatment is performed using, for example, a mixed gas of a rare gassuch as He, Ar, Kr, or Xe; and oxygen, nitrogen oxide, ammonia,nitrogen, hydrogen, or the like. In that case, when plasma is excited byintroduction of microwaves, plasma with a low electron temperature andhigh density can be generated. By oxidation or nitriding of the surfaceof the semiconductor film with oxygen radicals (including OH radicals insome cases) or nitrogen radicals (including NH radicals in some cases)generated by such high-density plasma, an insulating film with athickness of 1 to 20 nm, preferably 5 to 10 nm can be formed to be incontact with the semiconductor film. For example, nitrous oxide (N₂O) isdiluted with Ar by 1 to 3 times (flow rate) and a microwave (2.45 GHz)electric power of 3 to 5 kW is applied with a pressure of 10 to 30 Pa sothat the oxidation or nitriding of the surface of the semiconductor film702 is performed. By this treatment, an insulating film with a thicknessof 1 to 10 nm (preferably 2 to 6 nm) is formed. Further, nitrous oxide(N₂O) and silane (SiH₄) are introduced and a microwave (2.45 GHz)electric power of 3 to 5 kW is applied with a pressure of 10 to 30 Pa sothat a silicon oxynitride film is formed by vapor deposition, therebyforming a gate insulating film. With a combination of solid-phasereaction and vapor deposition, a gate insulating film having lowinterface state density and high withstand voltage can be formed.

The oxidation or nitriding of the semiconductor film by the high-densityplasma treatment proceeds by solid-phase reaction. Thus, interface statedensity between the gate insulating film 703 and the semiconductor film702 can be extremely low. Further, by direct oxidation or nitriding ofthe semiconductor film 702 by high-density plasma treatment, variationin the thickness of the insulating film to be formed can be suppressed.Further, in the case where the semiconductor film has crystallinity, byoxidation of the surface of the semiconductor film by solid-phasereaction by high-density plasma treatment, crystal grain boundaries canbe prevented from being locally oxidized at fast speed. Thus, a uniformgate insulating film with low interface state density can be formed.Variations in the characteristics of a transistor whose gate insulatingfilm partly or entirely includes an insulating film formed byhigh-density plasma treatment can be suppressed.

The gate insulating film 703 may be formed using a single layer or astack of layers of a film including silicon oxide, silicon nitrideoxide, silicon oxynitride, silicon nitride, hafnium oxide, aluminumoxide, tantalum oxide, yttrium oxide, hafnium silicate (HfSi_(x)O_(y),(x>0, y>0)), hafnium silicate (HfSi_(x)O_(y) (x>0, y>0)) to whichnitrogen is added, hafnium aluminate (HfAl_(x)O_(y), (x>0, y>0)) towhich nitrogen is added, or the like by plasma-enhanced CVD, sputtering,or the like.

Note that in this specification, an oxynitride is a substance whichincludes more oxygen than nitrogen, and a nitride oxide is a substancewhich includes more nitrogen than oxygen.

The thickness of the gate insulating film 703 can be, for example, 1 to100 nm, preferably 10 to 50 nm. In this embodiment, a single-layerinsulating film containing silicon oxide is formed as the gateinsulating film 703 by plasma-enhanced CVD.

Then, after the mask 705 is removed, part of the gate insulating film703 is removed as illustrated in FIG. 13C and an opening 706 is formedin a region overlapping with the impurity region 704 by etching or thelike. After that, a gate electrode 707 and a conductive film 708 areformed.

A conductive film is formed to cover the opening 706 and then isprocessed into a predetermined shape, so that the gate electrode 707 andthe conductive film 708 can be formed. The conductive film 708 is incontact with the impurity region 704 in the opening 706. The conductivefilm can be formed by CVD, sputtering, vapor deposition, spin coating,or the like. For the conductive film, tantalum (Ta), tungsten (W),titanium (Ti), molybdenum (Mo), aluminum (Al), copper (Cu), chromium(Cr), niobium (Nb), or the like can be used. An alloy containing themetal as its main component or a compound containing the metal may beused. Alternatively, the conductive film may be formed using asemiconductor such as polycrystalline silicon doped with an impurityelement such as phosphorus which imparts conductivity to thesemiconductor film.

Note that although the gate electrode 707 and the conductive film 708are formed using a single-layer conductive film in this embodiment, thisembodiment is not limited to this structure. The gate electrode 707 andthe conductive film 708 may be formed of a plurality of stackedconductive films.

As a combination of two conductive films, tantalum nitride or tantalumcan be used for a first conductive film and tungsten can be used for asecond conductive film. As well as the example, any of the followingcombination can be used: tungsten nitride and tungsten; molybdenumnitride and molybdenum; aluminum and tantalum; aluminum and titanium;and the like. Since tungsten and tantalum nitride have high heatresistance, heat treatment for thermal activation can be performed in astep performed after the two conductive films are formed. Alternatively,as the combination of the two conductive films, for example, nickelsilicide and silicon doped with an impurity element which imparts n-typeconductivity, tungsten silicide and silicon doped with an impurityelement which imparts n-type conductivity, or the like can be used.

In the case of a three-layer structure in which three conductive filmsare stacked, a layered structure of a molybdenum film, an aluminum film,and a molybdenum film is preferably used.

A light-transmitting oxide conductive film of indium oxide, indiumoxide-tin oxide, indium oxide-zinc oxide, zinc oxide, zinc aluminumoxide, zinc aluminum oxynitride, zinc gallium oxide, or the like can beused as the gate electrode 707 and the conductive film 708.

Alternatively, the gate electrode 707 and the conductive film 708 may beselectively formed by a droplet discharge method without the use of amask. A droplet discharge method is a method for forming a predeterminedpattern by discharge or ejection of a droplet containing a predeterminedcomposition from an orifice, and includes an inkjet method in itscategory.

In addition, the gate electrode 707 and the conductive film 708 may beformed by forming a conductive film, and the conductive film is etchedby inductively coupled plasma (ICP) etching under appropriatelycontrolled conditions (e.g., the amount of electric power applied to acoiled electrode layer, the amount of electric power applied to anelectrode layer on the substrate side, and the electrode temperature onthe substrate side) to have a desired tapered shape. Further, an angleand the like of the tapered shape may be controlled by the shape of amask. Note that for an etching gas, a chlorine-based gas such aschlorine, boron chloride, silicon chloride, or carbon tetrachloride; afluorine-based gas such as carbon tetrafluoride, sulfur fluoride, ornitrogen fluoride; or oxygen can be used as appropriate.

Next, as illustrated in FIG. 13D, when an impurity element which impartsone conductivity is added to the semiconductor film 702 with the gateelectrode 707 and the conductive film 708 used as masks, a channelformation region 710 overlapping with the gate electrode 707, a pair ofimpurity regions 709 sandwiching the channel formation region 710, andan impurity region 711 obtained by further adding an impurity element topart of the impurity region 704 are formed in the semiconductor film702.

In this embodiment, the case where an impurity element which impartsp-type conductivity (e.g., boron) is added to the semiconductor film 702is described.

Next, as illustrated in FIG. 14A, insulating films 712 and 713 areformed to cover the gate insulating film 703, the gate electrode 707,and the conductive film 708. Specifically, an inorganic insulating filmof silicon oxide, silicon nitride, silicon nitride oxide, siliconoxynitride, aluminum nitride, aluminum nitride oxide, or the like can beused as the insulating films 712 and 713. In particular, the insulatingfilms 712 and 713 are preferably formed using a low dielectric constant(low-k) material because capacitance due to overlapping of electrodes orwirings can be sufficiently reduced. Note that a porous insulating filmincluding such a material may be employed as the insulating films 712and 713. Since the porous insulating film has lower dielectric constantthan a dense insulating layer, parasitic capacitance due to electrodesor wirings can be further reduced.

In this embodiment, an example in which silicon oxynitride is used forthe insulating film 712 and silicon nitride oxide is used for theinsulating film 713 is described. In addition, in this embodiment,although an example in which the insulating films 712 and 713 are formedover the gate electrode 707 and the conductive film 708, in the presentinvention, only one insulating film may be formed over the gateelectrode 707 and the conductive film 708, or a plurality of insulatingfilms of three or more layers may be stacked.

Next, as illustrated in FIG. 14B, the insulating films 712 and 713 aresubjected to chemical mechanical polishing (CMP) or etching, so thatsurfaces of the gate electrode 707 and the conductive film 708 areexposed. Note that in order to improve the characteristics of thetransistor 101 which is formed later, surfaces of the insulating films712 and 713 are preferably flattened as much as possible.

Through the above steps, the transistor 102 can be formed.

Next, a method for forming the transistor 101 is described. First, asillustrated in FIG. 14C, an oxide semiconductor layer 716 is formed overthe insulating film 712 or the insulating film 713.

The oxide semiconductor layer 716 can be formed by processing an oxidesemiconductor film formed over the insulating films 712 and 713 into adesired shape. The thickness of the oxide semiconductor film is 2 to 200nm, preferably 3 to 50 nm, more preferably 3 to 20 nm. The oxidesemiconductor film is deposited by sputtering using an oxidesemiconductor as a target. Alternatively, the oxide semiconductor filmcan be formed by sputtering in a rare gas (e.g., argon) atmosphere, anoxygen atmosphere, or a mixed atmosphere of a rare gas (e.g., argon) andoxygen.

Note that before the oxide semiconductor film is deposited bysputtering, dust on surfaces of the insulating films 712 and 713 ispreferably removed by reverse sputtering in which an argon gas isintroduced and plasma is generated. The reverse sputtering is a methodin which, without application of voltage to a target side, an RF powersource is used for application of voltage to a substrate side in anargon atmosphere and plasma is generated in the vicinity of thesubstrate so that a substrate surface is modified. Note that nitrogen,helium, or the like may be used instead of the argon atmosphere.Alternatively, an argon atmosphere to which oxygen, nitrous oxide, orthe like is added may be used. Alternatively, an argon atmosphere towhich chlorine, carbon tetrafluoride, or the like is added may be used.

The oxide semiconductor layer preferably contains at least indium (In)or zinc (Zn). In particular, oxide semiconductor layer preferablycontains In and Zn. As a stabilizer for reducing variation in electricalcharacteristics of a transistor including the oxide semiconductor layer,the oxide semiconductor layer preferably contains gallium (Ga) inaddition to In and Zn. Tin (Sn) is preferably contained as a stabilizer.Hafnium (Hf) is preferably contained as a stabilizer. Aluminum (Al) ispreferably contained as a stabilizer. As another stabilizer, one or morekinds of lanthanoid such as lanthanum (La), cerium (Ce), praseodymium(Pr), neodymium (Nd), samarium (Sm), europium (Eu), gadolinium (Gd),terbium (Tb), dysprosium (Dy), holmium (Ho), erbium (Er), thulium (Tm),ytterbium (Yb), or lutetium (Lu) may be contained. For example, indiumoxide; tin oxide; zinc oxide; a two-component metal oxide such as anIn—Zn-based oxide, a Sn—Zn-based oxide, an Al—Zn-based oxide, aZn—Mg-based oxide, a Sn—Mg-based oxide, an In—Mg-based oxide, or anIn—Ga-based oxide; a three-component metal oxide such as anIn—Ga—Zn-based oxide (also referred to as IGZO), an In—Al—Zn-basedoxide, an In—Sn—Zn-based oxide, a Sn—Ga—Zn-based oxide, anAl—Ga—Zn-based oxide, a Sn—Al—Zn-based oxide, an In—Hf—Zn-based oxide,an In—La—Zn-based oxide, an In—Ce—Zn-based oxide, an In—Pr—Zn-basedoxide, an In—Nd—Zn-based oxide, an In—Sm—Zn-based oxide, anIn—Eu—Zn-based oxide, an In—Gd—Zn-based oxide, an In—Tb—Zn-based oxide,an In—Dy—Zn-based oxide, an In—Ho—Zn-based oxide, an In—Er—Zn-basedoxide, an In—Tm—Zn-based oxide, an In—Yb—Zn-based oxide, or anIn—Lu—Zn-based oxide; or a four-component metal oxide such as anIn—Sn—Ga—Zn-based oxide, an In—Hf—Ga—Zn-based oxide, anIn—Al—Ga—Zn-based oxide, an In—Sn—Al—Zn-based oxide, anIn—Sn—Hf—Zn-based oxide, or an In—Hf—Al—Zn-based oxide can be used.

Here, for example, an In—Ga—Zn-based oxide semiconductor means an oxidesemiconductor containing indium (In), gallium (Ga), and zinc (Zn), andthere is no limitation on the composition ratio.

For the oxide semiconductor layer, a thin film represented by a chemicalformula of InMO₃(ZnO)_(m) (m>0, where m is not an integer) can be used.Here, M denotes one or more metal elements selected from Ga, Al, Mn, orCo. As the oxide semiconductor, a material represented byIn₃SnO₅(ZnO)_(n) (n>0, where n is an integer) may be used.

In the case where an In—Zn-based material is used for the oxidesemiconductor, a target used has a composition ratio of In:Zn=50:1 to1:2 in an atomic ratio (In₂O₃:ZnO=25:1 to 1:4 in a molar ratio),preferably In:Zn=20:1 to 1:1 in an atomic ratio (In₂O₃:ZnO=10:1 to 1:2in a molar ratio), more preferably In:Zn=1.5:1 to 15:1 in an atomicratio (In₂O₃:ZnO=3:4 to 15:2 in a molar ratio). For example, when atarget used for deposition of an In—Zn-based oxide semiconductor has acomposition ratio of In:Zn:O=X:Y:Z in an atomic ratio, Z>1.5X+Y.

In this embodiment, a 30-nm-thick In—Ga—Zn-based oxide semiconductorthin film which is obtained by sputtering using a target includingindium (In), gallium (Ga), and zinc (Zn) is used as the oxidesemiconductor film. A target with a composition ratio of metals,In:Ga:Zn=1:1:0.5, In:Ga:Zn=1:1:1, or In:Ga:Zn=1:1:2 can be used as thetarget, for example. The filling rate of the target including In, Ga,and Zn is higher than or equal to 90% and lower than or equal to 100%,preferably higher than or equal to 95% and lower than 100%. With the useof the target with a high filling rate, a dense oxide semiconductor filmis formed.

In this embodiment, the oxide semiconductor film is deposited in such amanner that the substrate is held in a treatment chamber kept in areduced pressure state, moisture remaining in the treatment chamber isremoved, a sputtering gas from which hydrogen and moisture are removedis introduced, and the target is used. The substrate temperature may be100 to 600° C., preferably 200 to 400° C. during deposition. Bydeposition of the oxide semiconductor film while the substrate isheated, the concentration of impurities included in the deposited oxidesemiconductor film can be lowered. In addition, damage by sputtering canbe reduced. In order to remove moisture remaining in the treatmentchamber, an adsorption vacuum pump is preferably used. For example, acryopump, an ion pump, or a titanium sublimation pump is preferablyused. A turbo pump to which a cold trap is added may be used as anexhaustion means. For example, a hydrogen atom, a compound containing ahydrogen atom, such as water (preferably a compound containing a carbonatom), and the like are exhausted from the treatment chamber with theuse of a cryopump. Thus, the concentration of impurities contained inthe oxide semiconductor film deposited in the treatment chamber can belowered.

As an example of the deposition condition, the following condition isemployed: the distance between the substrate and the target is 100 mm,the pressure is 0.6 Pa, the direct current (DC) power is 0.5 kW, and theatmosphere is an oxygen atmosphere (the proportion of the oxygen flowrate is 100%). Note that it is preferable that pulsed direct-current(DC) power be used because dust generated during deposition can bereduced and the film thickness can be uniform.

Further, when the leakage rate of the treatment chamber of thesputtering apparatus is set lower than or equal to 1×10⁻¹⁰ Pa×m³/s,entry of impurities such as alkali metal or hydride into the oxidesemiconductor film that is being formed by sputtering can be reduced.Furthermore, with the use of the adsorption vacuum pump as an evacuationsystem, counter flow of impurities such as alkali metal, a hydrogenatom, a hydrogen molecule, water, a hydroxyl group, or hydride from theevacuation system can be reduced.

When the purity of the target is set to 99.99% or higher, alkali metal,a hydrogen atom, a hydrogen molecule, water, a hydroxyl group, hydride,or the like mixed into the oxide semiconductor film can be reduced. Inaddition, with the use of the target, the concentration of an alkalimetal such as lithium, sodium, or potassium can be reduced in the oxidesemiconductor film.

Note that in order that hydrogen, a hydroxyl group, and moisture becontained in the oxide semiconductor film as little as possible, it ispreferable that an impurity such as hydrogen or moisture that isadsorbed on the substrate 700 be eliminated and exhausted by preheatingof the substrate 700 over which the insulating films 712 and 713 areformed in a preheating chamber of a sputtering apparatus, aspretreatment for deposition. The temperature of the preheating is 100 to400° C., preferably 150 to 300° C. As an exhaustion means provided inthe preheating chamber, a cryopump is preferable. Note that thepreheating treatment can be omitted. This preheating may be similarlyperformed on the substrate 700 over which conductive films 719 and 720are formed before the formation of a gate insulating film 721.

Note that etching for forming the oxide semiconductor layer 716 may bedry etching, wet etching, or both dry etching and wet etching. As anetching gas used for dry etching, a gas containing chlorine (achlorine-based gas such as chlorine (Cl₂), boron trichloride (BCl₃),silicon tetrachloride (SiCl₄), or carbon tetrachloride (CCl₄)) ispreferably used. Alternatively, a gas containing fluorine (afluorine-based gas such as carbon tetrafluoride (CF₄), sulfurhexafluoride (SF₆), nitrogen trifluoride (NF₃), or trifluoromethane(CHF₃)), hydrogen bromide (HBr), oxygen (O₂), any of these gases towhich a rare gas such as helium (He) or argon (Ar) is added, or the likecan be used.

As the dry etching, parallel plate reactive ion etching (RIE) orinductively coupled plasma (ICP) etching can be used. In order to etchthe film to have a desired shape, the etching conditions (e.g., theamount of electric power applied to a coiled electrode, the amount ofelectric power applied to an electrode on the substrate side, and theelectrode temperature on the substrate side) are adjusted asappropriate.

As an etchant used for the wet etching, a mixed solution of phosphoricacid, acetic acid, and nitric acid, organic acid such as citric acid oroxalic acid, or the like can be used. In this embodiment, ITO-07N(produced by KANTO CHEMICAL CO., INC.) is used.

A resist mask for forming the oxide semiconductor layer 716 may beformed by an inkjet method. When the resist mask is formed by an inkjetmethod, a photomask is not used; thus, manufacturing cost can bereduced.

Note that it is preferable that reverse sputtering be performed beforethe formation of a conductive film in a subsequent step so that resistresidues and the like that attach onto surfaces of the oxidesemiconductor layer 716 and the insulating films 712 and 713 areremoved.

Note that the oxide semiconductor film deposited by sputtering or thelike contains a large amount of moisture or hydrogen (including ahydroxyl group) as an impurity in some cases. Moisture or hydrogeneasily forms a donor level and thus serve as an impurity in the oxidesemiconductor. Thus, in one embodiment of the present invention, inorder to reduce impurities such as moisture or hydrogen in the oxidesemiconductor film (in order to perform dehydration or dehydrogenation),the oxide semiconductor layer 716 is subjected to heat treatment in areduced-pressure atmosphere, an inert gas atmosphere of nitrogen, a raregas, or the like, an oxygen gas atmosphere, or ultra dry air (themoisture amount is 20 ppm (−55° C. by conversion into a dew point) orless, preferably 1 ppm or less, more preferably 10 ppb or less, in thecase where measurement is performed by a dew point meter in a cavityring down laser spectroscopy (CRDS) method).

By performing heat treatment on the oxide semiconductor layer 716,moisture or hydrogen in the oxide semiconductor layer 716 can beeliminated. Specifically, heat treatment may be performed at atemperature higher than or equal to 250° C. and lower than or equal to750° C., preferably higher than or equal to 400° C. and lower than thestrain point of the substrate. For example, heat treatment may beperformed at 500° C. for approximately 3 to 6 minutes. When RTA is usedfor the heat treatment, dehydration or dehydrogenation can be performedin a short time; thus, treatment can be performed even at a temperaturehigher than the strain point of a glass substrate.

In this embodiment, an electric furnace that is one of heat treatmentapparatuses is used.

Note that the heat treatment apparatus is not limited to an electricfurnace, and may be provided with a device for heating an object bythermal conduction or thermal radiation from a heater such as aresistance heater. For example, a rapid thermal annealing (RTA)apparatus such as a gas rapid thermal annealing (GRTA) apparatus or alamp rapid thermal annealing (LRTA) apparatus can be used. An LRTAapparatus is an apparatus for heating an object by radiation of light(an electromagnetic wave) emitted from a lamp such as a halogen lamp, ametal halide lamp, a xenon arc lamp, a carbon arc lamp, a high pressuresodium lamp, or a high pressure mercury lamp. A GRTA apparatus is anapparatus with which heat treatment is performed using ahigh-temperature gas. An inert gas which does not react with an objectby heat treatment, such as nitrogen or a rare gas (e.g., argon), is usedas the gas.

In the heat treatment, it is preferable that moisture, hydrogen, and thelike be not contained in nitrogen or a rare gas such as helium, neon, orargon. Alternatively, the purity of nitrogen or a rare gas such ashelium, neon, or argon which is introduced into the heat treatmentapparatus is preferably 6N (99.9999%) or higher, more preferably 7N(99.99999%) or higher (that is, the impurity concentration is 1 ppm orlower, preferably 0.1 ppm or lower).

Note that it has been pointed out that an oxide semiconductor isinsensitive to impurities, there is no problem when a considerableamount of metal impurities is contained in the film, and soda-lime glasswhich contains a large amount of alkali metal such as sodium and isinexpensive can be used (Kamiya, Nomura, and Hosono, “Carrier TransportProperties and Electronic Structures of Amorphous Oxide Semiconductors:The present status”, KOTAI BUTSURI (SOLID STATE PHYSICS), 2009, Vol. 44,pp. 621-633). But such consideration is not appropriate. Alkali metal isnot an element included in an oxide semiconductor and thus is animpurity. Alkaline earth metal is also an impurity in the case wherealkaline earth metal is not included in an oxide semiconductor. Alkalimetal, in particular, Na becomes Na⁺ when an insulating film which is incontact with an oxide semiconductor layer is an oxide and Na diffusesinto the insulating film. In addition, in the oxide semiconductor layer,Na cuts or enters a bond between metal and oxygen which are included inan oxide semiconductor. As a result, for example, deterioration ofcharacteristics of a transistor, such as a normally-on state of thetransistor due to shift of the threshold voltage in a negativedirection, or a decrease in mobility, occurs. Variation incharacteristics also occurs. Such deterioration of characteristics ofthe transistor and variation in characteristics due to the impurityremarkably appear when the concentration of hydrogen in the oxidesemiconductor layer is extremely low. Thus, when the concentration ofhydrogen in the oxide semiconductor layer is 1×10¹⁸/cm³ or lower,preferably 1×10¹⁷/cm³ or lower, the concentration of the impurity ispreferably lowered. Specifically, the measurement value of a Naconcentration by secondary ion mass spectrometry is preferably5×10¹⁶/cm³ or less, more preferably 1×10¹⁶/cm³ or less, still morepreferably 1×10¹⁵/cm³ or less. Similarly, the measurement value of a Liconcentration is preferably 5×10¹⁵/cm³ or less, more preferably1×10¹⁵/cm³ or less. Similarly, the measurement value of a Kconcentration is preferably 5×10¹⁵/cm³ or less, more preferably1×10¹⁵/cm³ or less.

Through the above steps, the concentration of hydrogen in the oxidesemiconductor layer 716 can be lowered. In addition, the heat treatmentat a temperature of lower than or equal to the glass transitiontemperature makes it possible to form an oxide semiconductor layer withextremely low carrier density and a wide band gap. Thus, the transistorcan be formed using a large substrate, so that mass productivity can beincreased. The heat treatment can be performed at any time after theoxide semiconductor layer is deposited.

Note that the oxide semiconductor layer may be either amorphous orcrystalline. The oxide semiconductor layer may be either single crystalor non-single-crystal. In the case of non-single-crystal, the oxidesemiconductor layer may be either amorphous or polycrystalline. Further,the oxide semiconductor may have an amorphous structure including acrystalline portion or may be non-amorphous. For the oxide semiconductorlayer, it is possible to use an oxide including a crystal with c-axisalignment (also referred to as c-axis aligned crystal (CAAC)) that has aphase having a triangular, hexagonal, regular triangular, or regularhexagonal atomic order when seen from the direction perpendicular to thea-b plane and in which metal atoms are arranged in a layered manner ormetal atoms and oxygen atoms are arranged in a layered manner when seenfrom the direction perpendicular to the c-axis direction.

An oxide semiconductor film including CAAC can be formed by sputtering.In order to obtain an oxide including CAAC by sputtering, it isimportant to form hexagonal crystals in an initial stage of depositionof an oxide semiconductor film and to cause crystal growth from thehexagonal crystals as cores. In order to achieve this, it is preferablethat the distance between the target and the substrate be made longer(e.g., approximately 150 to 200 mm) and a substrate heating temperaturebe 100 to 500° C., preferably 200 to 400° C., more preferably 250 to300° C. In addition, the deposited oxide semiconductor film is subjectedto heat treatment at a temperature higher than the substrate heatingtemperature during the deposition, so that micro defects in the film anddefects at the interface of a stacked layer can be repaired.

In the oxide including CAAC, metal atoms and oxygen atoms are bonded inan orderly manner in comparison with an amorphous oxide semiconductor.In other words, in the case where an oxide semiconductor is amorphous,the coordination number of oxygen atoms in a metal atom might varybetween metal atoms, but the coordination number of metal atoms in ametal atom is substantially constant in the oxide including CAAC. Thus,microscopic defects of oxygen can be reduced and instability and chargetransfer due to attachment and detachment of hydrogen atoms (includinghydrogen ions) or alkali metal atoms can be reduced.

Consequently, when a transistor is formed using an oxide semiconductorfilm including CAAC, the amount of change in the threshold voltage ofthe transistor that occurs after light irradiation and abias-temperature (BT) stress test are performed on the transistor can bereduced. Accordingly, a transistor with stable electricalcharacteristics can be formed.

Next, as illustrated in FIG. 15A, the conductive film 719 which is incontact with the gate electrode 707 and the oxide semiconductor layer716 and the conductive film 720 which is in contact with the conductivefilm 708 and the oxide semiconductor layer 716 are formed. Theconductive films 719 and 720 function as a source and drain electrodes.

Specifically, the conductive films 719 and 720 can be formed in such amanner that a conductive film is formed to cover the gate electrode 707and the conductive film 708 by sputtering or vacuum vapor deposition andthen is processed into a predetermined shape.

As the conductive film which serves as the conductive films 719 and 720,any of the following materials can be used: an element selected fromaluminum, chromium, copper, tantalum, titanium, molybdenum, or tungsten;an alloy including any of these elements; an alloy film including theabove elements in combination; and the like. Alternatively, a structuremay be employed in which a film of a refractory metal such as chromium,tantalum, titanium, molybdenum, or tungsten is stacked over or below ametal film of aluminum, copper, or the like. Aluminum or copper ispreferably used in combination with a refractory metal material in orderto avoid problems with heat resistance and corrosion. As the refractorymetal material, molybdenum, titanium, chromium, tantalum, tungsten,neodymium, scandium, yttrium, or the like can be used.

Further, the conductive film which serves as the conductive films 719and 720 may have a single-layer structure or a layered structure of twoor more layers. For example, a single-layer structure of an aluminumfilm containing silicon, a two-layer structure in which a titanium filmis stacked over an aluminum film, a three-layer structure in which atitanium film, an aluminum film, and a titanium film are stacked in thatorder, and the like can be given. A Cu—Mg—Al alloy, a Mo—Ti alloy, Ti,and Mo have high adhesion with an oxide film. Thus, for the conductivefilms 719 and 720, a layered structure is employed in which a conductivefilm including a Cu—Mg—Al alloy, a Mo—Ti alloy, Ti, or Mo is used for alower layer and a conductive film including Cu is used for an upperlayer. Consequently, the adhesion between an insulating film which is anoxide film and the conductive films 719 and 720 can be increased.

For the conductive film which serves as the conductive films 719 and720, a conductive metal oxide may be used. As the conductive metaloxide, indium oxide, tin oxide, zinc oxide, indium oxide-tin oxide,indium oxide-zinc oxide, or the conductive metal oxide materialcontaining silicon or silicon oxide can be used.

In the case where heat treatment is performed after the formation of theconductive film, the conductive film preferably has heat resistance highenough to withstand the heat treatment.

Note that each material and etching conditions are adjusted asappropriate so that the oxide semiconductor layer 716 is not removed asmuch as possible during etching of the conductive film. Depending on theetching conditions, an exposed portion of the oxide semiconductor layer716 is partly etched, so that a groove (a depression portion) is formedin some cases.

In this embodiment, a titanium film is used as the conductive film.Thus, the conductive film can be selectively etched by wet etching usinga solution (an ammonia hydrogen peroxide mixture) containing ammonia andhydrogen peroxide water. Specifically, an ammonia hydrogen peroxidemixture in which oxygenated water of 31 wt %, ammonia water of 28 wt %,and water are mixed at a volume ratio of 5:2:2 is used. Alternatively,dry etching may be performed on the conductive film with the use of agas containing chlorine (Cl₂), boron chloride (BCl₃), or the like.

Note that in order to reduce the number of photomasks used in aphotolithography process and to reduce the number of processes, anetching process may be performed using a multi-tone mask through whichlight is transmitted to have a plurality of intensities. A resist maskformed using a multi-tone mask has a plurality of thicknesses and can bechanged in shape by etching; thus, the resist mask can be used in aplurality of etching processes for processing films into differentpatterns. Accordingly, a resist mask corresponding to at least two ormore kinds of different patterns can be formed by one multi-tone mask.Thus, the number of exposure masks and the number of correspondingphotolithography processes can be reduced, so that the process can besimplified.

Further, an oxide conductive film functioning as a source and drainregions may be provided between the oxide semiconductor layer 716 andthe conductive films 719 and 720 functioning as a source and drainelectrodes. The material of the oxide conductive film preferablycontains zinc oxide as a component and preferably does not containindium oxide. For such an oxide conductive film, zinc oxide, zincaluminum oxide, zinc aluminum oxynitride, gallium zinc oxide, or thelike can be used.

For example, in the case where the oxide conductive film is formed,etching for forming the oxide conductive film and etching for formingthe conductive films 719 and 720 may be performed concurrently.

With provision of the oxide conductive film functioning as a source anddrain regions, resistance between the oxide semiconductor layer 716 andthe conductive films 719 and 720 can be lowered, so that the transistorcan operate at high speed. In addition, with provision of the oxideconductive film functioning as a source and drain regions, the withstandvoltage of the transistor can be increased.

Next, plasma treatment may be performed using a gas such as N₂O, N₂, orAr. With this plasma treatment, water and the like which attach to asurface of the oxide semiconductor layer exposed are removed.Alternatively, plasma treatment may be performed using a mixture gas ofoxygen and argon.

After the plasma treatment, as illustrated in FIG. 15B, the gateinsulating film 721 is formed to cover the conductive films 719 and 720and the oxide semiconductor layer 716. Then, a gate electrode 722 isformed over the gate insulating film 721 to overlap with the oxidesemiconductor layer 716, and a conductive film 723 is formed over theconductive film 719 to overlap with the conductive film 719.

The gate insulating film 721 can be formed using a material and alayered structure which are similar to those of the gate insulating film703. Note that the gate insulating film 721 preferably includesimpurities such as moisture or hydrogen as little as possible, and thegate insulating film 721 may be formed using a single-layer insulatingfilm or a plurality of insulating films stacked. When hydrogen iscontained in the gate insulating film 721, hydrogen enters the oxidesemiconductor layer 716 or oxygen in the oxide semiconductor layer 716is extracted by hydrogen, whereby the oxide semiconductor layer 716 haslower resistance (n-type conductivity); thus, a parasitic channel mightbe formed. Thus, it is important that a deposition method in whichhydrogen is not used be employed in order to form the gate insulatingfilm 721 containing hydrogen as little as possible. A material having ahigh barrier property is preferably used for the gate insulating film721. As the insulating film having a high barrier property, a siliconnitride film, a silicon nitride oxide film, an aluminum nitride film, analuminum nitride oxide film, or the like can be used, for example. Whena plurality of insulating films stacked are used, an insulating filmhaving low proportion of nitrogen, such as a silicon oxide film or asilicon oxynitride film, is formed on a side which is closer to theoxide semiconductor layer 716 than the insulating film having a highbarrier property. Then, the insulating film having a high barrierproperty is formed to overlap with the conductive films 719 and 720 andthe oxide semiconductor layer 716 with the insulating film having lowproportion of nitrogen sandwiched therebetween. When the insulating filmhaving a high barrier property is used, impurities such as moisture orhydrogen can be prevented from entering the oxide semiconductor layer716, the gate insulating film 721, or the interface between the oxidesemiconductor layer 716 and another insulating film and the vicinitythereof. In addition, the insulating film having low proportion ofnitrogen, such as a silicon oxide film or a silicon oxynitride film, isformed so as to be in contact with the oxide semiconductor layer 716, sothat the insulating film having a high barrier property can be preventedfrom being in direct contact with the oxide semiconductor layer 716.

In this embodiment, the gate insulating film 721 with a structure inwhich a 100-nm-thick silicon nitride film formed by sputtering isstacked over a 200-nm-thick silicon oxide film formed by sputtering isformed. The substrate temperature during deposition is in the range ofroom temperature to 300° C., and is 100° C. in this embodiment.

After the gate insulating film 721 is formed, heat treatment may beperformed. The heat treatment is performed in a nitrogen atmosphere,ultra-dry air, or a rare gas (e.g., argon or helium) atmospherepreferably at 200 to 400° C., for example, 250 to 350° C. It ispreferable that the content of water in the gas be 20 ppm or lower,preferably 1 ppm or lower, more preferably 10 ppb or lower. In thisembodiment, for example, heat treatment is performed at 250° C. for 1hour in a nitrogen atmosphere. Alternatively, RTA treatment for a shorttime at a high temperature may be performed before the formation of theconductive films 719 and 720 in a manner similar to that of the heattreatment performed on the oxide semiconductor layer for reduction ofmoisture or hydrogen. Even when oxygen defects are generated in theoxide semiconductor layer 716 by the heat treatment performed on theoxide semiconductor layer 716 by performing heat treatment afterprovision of the gate insulating film 721 containing oxygen, oxygen issupplied to the oxide semiconductor layer 716 from the gate insulatingfilm 721. By the supply of oxygen to the oxide semiconductor layer 716,oxygen defects that serve as donors can be reduced in the oxidesemiconductor layer 716 and the stoichiometric ratio can be satisfied.The oxide semiconductor layer 716 preferably contains oxygen whosecomposition exceeds the stoichiometric composition. As a result, theoxide semiconductor layer 716 can be made substantially intrinsic andvariation in electrical characteristics of the transistor due to oxygendefects can be reduced; thus, electrical characteristics can beimproved. The timing of this heat treatment is not particularly limitedas long as it is after the formation of the gate insulating film 721.When this heat treatment serves as heat treatment in another step (e.g.,heat treatment during formation of a resin film or heat treatment forlowering the resistance of a transparent conductive film), the oxidesemiconductor layer 716 can be made substantially intrinsic without theincrease in the number of steps.

Alternatively, the oxygen defects that serve as donors in the oxidesemiconductor layer 716 may be reduced by subjecting the oxidesemiconductor layer 716 to heat treatment in an oxygen atmosphere sothat oxygen is added to the oxide semiconductor. The heat treatment isperformed at a temperature of, for example, higher than or equal to 100°C. and lower than 350° C., preferably higher than or equal to 150° C.and lower than 250° C. It is preferable that an oxygen gas used for theheat treatment in an oxygen atmosphere do not include water, hydrogen,or the like. Alternatively, the purity of the oxygen gas which isintroduced into the heat treatment apparatus is preferably 6N (99.9999%)or higher, more preferably 7N (99.99999%) or higher (that is, theimpurity concentration in oxygen is 1 ppm or lower, preferably 0.1 ppmor lower).

Alternatively, oxygen may be added to the oxide semiconductor layer 716by ion implantation, ion doping, or the like so that oxygen defects thatserve as donors are reduced. For example, oxygen made to be plasma witha microwave of 2.45 GHz may be added to the oxide semiconductor layer716.

The gate electrode 722 and the conductive film 723 can be formed in sucha manner that a conductive film is formed over the gate insulating film721 and then is etched. The gate electrode 722 and the conductive film723 can be formed using a material and a layered structure which aresimilar to those of the gate electrode 707 and the conductive films 719and 720.

The thickness of each of the gate electrode 722 and the conductive film723 is 10 to 400 nm, preferably 100 to 200 nm In this embodiment, aftera 150-nm-thick conductive film for the gate electrode is formed bysputtering using a tungsten target, the conductive film is processedinto a desired shape by etching, so that the gate electrode 722 and theconductive film 723 are formed. A resist mask may be formed by an inkjetmethod. When the resist mask is formed by an inkjet method, a photomaskis not used; thus, manufacturing cost can be reduced.

Through the above steps, the transistor 101 is formed.

Note that the transistor 101 is not limited to a transistor whosechannel is formed in an oxide semiconductor layer, and it is possible touse a transistor that includes a semiconductor material whose band gapis wider than that of silicon and whose intrinsic carrier density islower than that of silicon in a channel formation region. As such asemiconductor material, for example, silicon carbide, gallium nitride,or the like can be used instead of an oxide semiconductor. With achannel formation region including such a semiconductor material, atransistor whose off-state current is extremely low can be obtained.

Note that a portion where the conductive film 719 and the conductivefilm 723 overlap with each other with the gate insulating film 721provided therebetween corresponds to the capacitor 103.

Although the transistor 101 is described as a single-gate transistor, amulti-gate transistor including a plurality of channel formation regionscan be formed when the plurality of gate electrodes 714 which areelectrically connected are included when needed.

Note that an insulating film which is in contact with the oxidesemiconductor layer 716 (in this embodiment, corresponding to the gateinsulating film 721) may be formed using an insulating materialcontaining an element that belongs to Group 13 and oxygen. Many oxidesemiconductor materials contain an element that belongs to Group 13, andan insulating material containing an element that belongs to Group 13works well with an oxide semiconductor. By using such an insulatingmaterial containing an element that belongs to Group 13 for theinsulating film which is in contact with the oxide semiconductor layer,the state of an interface with the oxide semiconductor layer can be keptwell.

An insulating material containing an element that belongs to Group 13 isan insulating material containing one or more elements that belong toGroup 13. Examples of the insulating material containing an element thatbelongs to Group 13 include gallium oxide, aluminum oxide, aluminumgallium oxide, and gallium aluminum oxide. Here, aluminum gallium oxideis a material whose content of aluminum is larger than the content ofgallium in an atomic percent, and gallium aluminum oxide is a materialwhose content of gallium is larger than or equal to the content ofaluminum in an atomic percent.

For example, in the case where an insulating film is formed in contactwith an oxide semiconductor layer containing gallium, when a materialcontaining gallium oxide is used for the insulating film, favorablecharacteristics can be kept at the interface between the oxidesemiconductor layer and the insulating film. For example, when the oxidesemiconductor layer and the insulating film containing gallium oxide areprovided in contact with each other, pileup of hydrogen at the interfacebetween the oxide semiconductor layer and the insulating film can bereduced. Note that a similar effect can be obtained in the case where anelement that belongs to the same group as a constituent element of theoxide semiconductor is used for the insulating film. For example, it iseffective to form an insulating film with the use of a materialcontaining aluminum oxide. Aluminum oxide does not easily transmitwater. Thus, it is preferable to use the material including aluminumoxide in order to prevent water from entering the oxide semiconductorlayer.

The insulating film which is in contact with the oxide semiconductorlayer 716 preferably contains oxygen in a proportion higher than that inthe stoichiometric composition, by heat treatment in an oxygenatmosphere or oxygen doping. Oxygen doping is addition of oxygen to abulk. Note that the term “bulk” is used in order to clarify that oxygenis added not only to a surface of a thin film but also to the inside ofthe thin film. In addition, the term “oxygen doping” includes “oxygenplasma doping” in which oxygen which is made to be plasma is added to abulk. The oxygen doping may be performed by ion implantation or iondoping.

For example, in the case where the insulating film which is in contactwith the oxide semiconductor layer 716 is formed using gallium oxide,the composition of gallium oxide can be set to be Ga₂O_(X) (X=3+α,0<α<1) by heat treatment in an oxygen atmosphere or oxygen doping.

In the case where the insulating film which is in contact with the oxidesemiconductor layer 716 is formed using aluminum oxide, the compositionof aluminum oxide can be set to be Al₂O_(X) (X=3+α, 0<α<1) by heattreatment in an oxygen atmosphere or oxygen doping.

In the case where the insulating film which is in contact with the oxidesemiconductor layer 716 is formed using gallium aluminum oxide (aluminumgallium oxide), the composition of gallium aluminum oxide (aluminumgallium oxide) can be set to be Ga_(x)Al_(2−X)O_(3+a) (0<X<2, 0<a<1) byheat treatment in an oxygen atmosphere or oxygen doping.

By oxygen doping, an insulating film including a region where theproportion of oxygen is higher than that in the stoichiometriccomposition can be formed. When the insulating film including such aregion is in contact with the oxide semiconductor layer, oxygen thatexists excessively in the insulating film is supplied to the oxidesemiconductor layer, and oxygen deficiency in the oxide semiconductorlayer or at the interface between the oxide semiconductor layer and theinsulating film is reduced. Thus, the oxide semiconductor layer can bean intrinsic or substantially intrinsic oxide semiconductor.

The insulating film including a region where the proportion of oxygen ishigher than that in the stoichiometric composition may be applied toeither the insulating film placed on an upper side of the oxidesemiconductor layer or the insulating film placed on a lower side of theoxide semiconductor layer of the insulating films which are in contactwith the oxide semiconductor layer 716; however, it is preferable toapply such an insulating film to both the insulating films which are incontact with the oxide semiconductor layer 716. The above effect can beenhanced with a structure where the oxide semiconductor layer 716 issandwiched between the insulating films each including a region wherethe proportion of oxygen is higher than that in the stoichiometriccomposition, which are used as the insulating films in contact with theoxide semiconductor layer 716 and positioned on the upper side and thelower side of the oxide semiconductor layer 716.

The insulating films on the upper side and the lower side of the oxidesemiconductor layer 716 may contain the same constituent element ordifferent constituent elements. For example, the insulating films on theupper side and the lower side may be both formed using gallium oxidewhose composition is Ga₂O_(X) (X=3+α, 0<α<1). Alternatively, one of theinsulating films on the upper side and the lower side may be formedusing Ga₂O_(X) (X=3+α, 0<α<1) and the other may be formed using aluminumoxide whose composition is Al₂O_(X) (X=3+α, 0<α<1).

The insulating film which is in contact with the oxide semiconductorlayer 716 may be formed by a stack of insulating films each including aregion where the proportion of oxygen is higher than that in thestoichiometric composition. For example, the insulating film on theupper side of the oxide semiconductor layer 716 may be formed asfollows: gallium oxide whose composition is Ga₂O_(X) (X=3+α, 0<α<1) isformed and gallium aluminum oxide (aluminum gallium oxide) whosecomposition is Ga_(X)Al_(2−X)O_(3+α) (0<X<2, 0<α<1) may be formedthereover. Note that the insulating film on the lower side of the oxidesemiconductor layer 716 may be formed by a stack of insulating filmseach including a region where the proportion of oxygen is higher thanthat in the stoichiometric composition. Alternatively, both theinsulating films on the upper side and the lower side of the oxidesemiconductor layer 716 may be formed by a stack of insulating filmseach including a region where the proportion of oxygen is higher thanthat in the stoichiometric composition.

Next, as illustrated in FIG. 15C, an insulating film 724 is formed so asto cover the gate insulating film 721, the conductive film 723, and thegate electrode 722. The insulating film 724 can be formed by PVD, CVD,or the like. The insulating film 724 can be formed using a materialincluding an inorganic insulating material such as silicon oxide,silicon oxynitride, silicon nitride, hafnium oxide, gallium oxide, oraluminum oxide. Note that for the insulating film 724, a material with alow dielectric constant or a structure with a low dielectric constant(e.g., a porous structure) is preferably used. When the dielectricconstant of the insulating film 724 is lowered, parasitic capacitancegenerated between wirings or electrodes can be reduced, which results inhigher speed operation. Note that although the insulating film 724 has asingle-layer structure in this embodiment, one embodiment of the presentinvention is not limited to this structure. The insulating film 724 mayhave a layered structure of two or more layers.

Next, an opening 725 is formed in the gate insulating film 721 and theinsulating film 724, so that part of the conductive film 720 is exposed.After that, a wiring 726 which is in contact with the conductive film720 through the opening 725 is formed over the insulating film 724.

A conductive film is formed by PVD or CVD and then is etched, so thatthe wiring 726 is formed. As the material of the conductive film, anelement selected from aluminum, chromium, copper, tantalum, titanium,molybdenum, or tungsten; an alloy containing any of these elements as acomponent; or the like can be used. A material including one ofmanganese, magnesium, zirconium, beryllium, neodymium, and scandium or acombination of any of these elements may be used.

Specifically, for example, it is possible to employ a method in which athin titanium film is formed in a region including the opening of theinsulating film 724 by PVD and a thin titanium film (with a thickness ofapproximately 5 nm) is formed by PVD, and then an aluminum film isformed so as to be embedded in the opening 725. Here, the titanium filmformed by PVD has a function of reducing an oxide film (e.g., a nativeoxide film) formed on a surface over which the titanium film is formed,to decrease the contact resistance with the lower electrode or the like(here, the conductive film 720). In addition, hillocks of the aluminumfilm can be prevented. A copper film may be formed by a plating methodafter a barrier film of titanium, titanium nitride, or the like isformed.

The opening 725 formed in the insulating film 724 is preferably formedin a region overlapping with the conductive film 708. With provision ofthe opening 725 in such a region, the increase in element area due to acontact region can be inhibited.

Here, the case where a position where the impurity region 704 and theconductive film 720 are connected to each other and a position where theconductive film 720 and the wiring 726 are connected to each otheroverlap with each other without the use of the conductive film 708 isdescribed. In that case, an opening (also referred to as an opening in alower portion) is formed in the insulating films 712 and 713 that areformed over the impurity region 704, and the conductive film 720 isformed to cover the opening in the lower portion. After that, an opening(also referred to as an opening in an upper portion) is formed in aregion overlapping with the opening in the lower portion in the gateinsulating film 721 and the insulating film 724, and then the wiring 726is formed. When the opening in the upper portion is formed in the regionoverlapping with the opening in the lower portion, the conductive film720 formed in the opening in the lower portion might be disconnected byetching. In order to avoid the disconnection, the opening in the lowerportion and the opening in the upper portion are formed so as not tooverlap with each other, so that the problem of an increase in elementarea occurs.

As described in this embodiment, with the use of the conductive film708, the opening in the upper portion can be formed withoutdisconnection of the conductive film 720. Thus, the opening in the lowerportion and the opening in the upper portion can be formed to overlapwith each other, so that the increase in element area due to openingscan be inhibited. In short, the integration degree of the semiconductordevice can be improved.

Next, an insulating film 727 is formed to cover the wiring 726. Throughthe series of steps, the storage element 100 b can be formed.

Note that in the formation method, the conductive films 719 and 720functioning as a source and drain electrodes are formed after theformation of the oxide semiconductor layer 716. Thus, as illustrated inFIG. 15B, in the transistor 101 obtained by the manufacturing method,the conductive films 719 and 720 are formed over the oxide semiconductorlayer 716. However, in the transistor 101, the conductive filmsfunctioning as a source and drain electrodes may be formed below theoxide semiconductor layer 716, that is, between the oxide semiconductorlayer 716 and the insulating films 712 and 713.

FIG. 16 is a cross-sectional view of the transistor 101 at the time whenthe conductive films 719 and 720 functioning as a source and drainelectrodes are provided between the oxide semiconductor layer 716 andthe insulating films 712 and 713. The transistor 101 illustrated in FIG.16 can be obtained in such a manner that the conductive films 719 and720 are formed after the formation of the insulating film 713, and thenthe oxide semiconductor layer 716 is formed.

As described above, the transistor and the capacitor included in thestorage element of the memory element 300 can be formed in a mannersimilar to that of other transistors and capacitors included in theprogrammable LSI. For example, the transistor whose channel is formed inthe oxide semiconductor layer included in the storage element of thememory element 300 can be formed over the substrate provided with thetransistors included in the configuration memory 311, the look-up table312, the selection circuit 314, and the register 313 in the logicelement 310. In particular, the transistor whose channel is formed inthe oxide semiconductor layer included in the storage element of thememory element 300 can be formed to overlap with at least some of thetransistors included in the configuration memory 311, the look-up table312, the selection circuit 314, and the register 313 in the logicelement 310. In this manner, the memory element 300 which functions likea nonvolatile memory and the logic element 310 can be formed over onesubstrate. Thus, the programmable LSI can be made small. Further, thememory element 300 and the logic element 310 can be electricallyconnected to each other easily.

This embodiment can be combined with any of the other embodiments asappropriate.

Embodiment 7

In this embodiment, a transistor including an oxide semiconductor layerwith a structure different from the structure in Embodiment 6 isdescribed.

A transistor 901 illustrated in FIG. 17A includes an oxide semiconductorlayer 903 that is formed over an insulating film 902 and functions as anactive layer; a source electrode 904 and a drain electrode 905 that areformed over the oxide semiconductor layer 903; a gate insulating film906 that is formed over the oxide semiconductor layer 903, the sourceelectrode 904, and the drain electrode 905; and a gate electrode 907that overlaps with the oxide semiconductor layer 903 over the gateinsulating film 906.

The transistor 901 illustrated in FIG. 17A is a top-gate transistor inwhich the gate electrode 907 is formed over the oxide semiconductorlayer 903 and is also a top-contact transistor in which the sourceelectrode 904 and the drain electrode 905 are formed over the oxidesemiconductor layer 903. In the transistor 901, the source electrode 904and the drain electrode 905 do not overlap with the gate electrode 907.In other words, a gap which is larger than the thickness of the gateinsulating film 906 is provided between the source electrode 904 and thegate electrode 907 and between the drain electrode 905 and the gateelectrode 907. Thus, in the transistor 901, parasitic capacitance formedbetween the source electrode 904 and the gate electrode 907 and betweenthe drain electrode 905 and the gate electrode 907 can be reduced.Consequently, high-speed operation can be performed

The oxide semiconductor layer 903 includes a pair of high-concentrationregions 908 that can be obtained by addition of a dopant impartingn-type conductivity to the oxide semiconductor layer 903 after theformation of the gate electrode 907. In addition, in the oxidesemiconductor layer 903, a region which overlaps with the gate electrode907 with the gate insulating film 906 provided therebetween is a channelformation region 909. The oxide semiconductor layer 903 includes thechannel formation region 909 between the pair of high-concentrationregions 908. Addition of a dopant for formation of the pair ofhigh-concentration regions 908 can be performed by ion implantation. Arare gas such as helium, argon, or xenon; a Group 15 atom such asnitrogen, phosphorus, arsenic, or antimony; or the like can be used asthe dopant, for example.

For example, in the case where nitrogen is used as the dopant, theconcentration of nitrogen atoms in the high-concentration region 908 ispreferably 5×10¹⁹/cm³ or higher and 1×10²²/cm³ or lower.

The high-concentration region 908 to which the dopant imparting n-typeconductivity is added has higher conductivity than other regions in theoxide semiconductor layer 903. Thus, with provision of thehigh-concentration regions 908 in the oxide semiconductor layer 903,resistance between the source electrode 904 and the drain electrode 905can be lowered.

In the case where an In—Ga—Zn-based oxide semiconductor is used for theoxide semiconductor layer 903, an oxide semiconductor in thehigh-concentration regions 908 has a wurtzite crystal structure by heattreatment at 300 to 600° C. for 1 hour after the addition of nitrogen.When the oxide semiconductor in the high-concentration regions 908 has awurtzite crystal structure, the conductivity of the high-concentrationregions 908 can be further increased and the resistance between thesource electrode 904 and the drain electrode 905 can be further lowered.Note that in order to effectively lower the resistance between thesource electrode 904 and the drain electrode 905 by formation of anoxide semiconductor with a wurtzite crystal structure, the concentrationof nitrogen atoms in the high-concentration region 908 is preferably1×10²⁰/cm³ or higher and 7 at. % or lower in the case where nitrogen isused as the dopant. Even in the case where the concentration of nitrogenatoms is lower than the above range, an oxide semiconductor with awurtzite crystal structure can be obtained in some cases.

Alternatively, the oxide semiconductor layer 903 may be formed using anoxide including a CAAC. In the case where the oxide semiconductor layer903 is formed using an oxide including a CAAC, the conductivity of theoxide semiconductor layer 903 can be increased as compared to the casewhere an amorphous crystal is used. Thus, the resistance between thesource electrode 904 and the drain electrode 905 can be lowered.

When the resistance between the source electrode 904 and the drainelectrode 905 is lowered, high on-state current and high-speed operationcan be secured even when the transistor 901 is miniaturized. Inaddition, by miniaturization of the transistor 901, the area of astorage element including the transistor can be reduced, so that memorycapacity per unit area can be increased.

A transistor 911 illustrated in FIG. 17B includes a source electrode 914and a drain electrode 915 that are formed over an insulating film 912;an oxide semiconductor layer 913 that is formed over the sourceelectrode 914 and the drain electrode 915 and functions as an activelayer; a gate insulating film 916 that is formed over the oxidesemiconductor layer 913, the source electrode 914, and the drainelectrode 915; and a gate electrode 917 that overlaps with the oxidesemiconductor layer 913 over the gate insulating film 916.

The transistor 911 illustrated in FIG. 17B is a top-gate transistor inwhich the gate electrode 917 is formed over the oxide semiconductorlayer 913 and is also a bottom-contact transistor in which the sourceelectrode 914 and the drain electrode 915 are formed below the oxidesemiconductor layer 913. As in the transistor 901, in the transistor911, the source electrode 914 and the drain electrode 915 do not overlapwith the gate electrode 917. Thus, parasitic capacitance formed betweenthe source electrode 914 and the gate electrode 917 and between thedrain electrode 915 and the gate electrode 917 can be reduced.Consequently, high-speed operation can be performed.

The oxide semiconductor layer 913 includes a pair of high-concentrationregions 918 that can be obtained by addition of a dopant impartingn-type conductivity to the oxide semiconductor layer 913 after theformation of the gate electrode 917. In addition, in the oxidesemiconductor layer 913, a region which overlaps with the gate electrode917 with the gate insulating film 916 provided therebetween is a channelformation region 919. The oxide semiconductor layer 913 includes thechannel formation region 919 between the pair of high-concentrationregions 918.

The pair of high-concentration regions 918 can be formed by ionimplantation as in the high-concentration regions 908 of the transistor901. The high-concentration regions 908 can be referred to for the kindof a dopant used for the formation of the high-concentration regions918.

For example, in the case where nitrogen is used as the dopant, theconcentration of nitrogen atoms in the high-concentration region 918 ispreferably 5×10¹⁹/cm³ or higher and 1×10²²/cm³ or lower.

The high-concentration region 918 to which the dopant imparting n-typeconductivity is added has higher conductivity than other regions in theoxide semiconductor layer 913. Thus, with provision of thehigh-concentration regions 918 in the oxide semiconductor layer 913,resistance between the source electrode 914 and the drain electrode 915can be lowered.

In the case where an In—Ga—Zn-based oxide semiconductor is used for theoxide semiconductor layer 913, an oxide semiconductor in thehigh-concentration regions 918 has a wurtzite crystal structure by heattreatment at approximately 300 to 600° C. after the addition ofnitrogen. When the oxide semiconductor in the high-concentration regions918 has a wurtzite crystal structure, the conductivity of thehigh-concentration regions 918 can be further increased and theresistance between the source electrode 914 and the drain electrode 915can be further lowered. Note that in order to effectively lower theresistance between the source electrode 914 and the drain electrode 915by formation of an oxide semiconductor with a wurtzite crystalstructure, the concentration of nitrogen atoms in the high-concentrationregion 918 is preferably 1×10²⁰/cm³ or higher and 7 at. % or lower inthe case where nitrogen is used as the dopant. Even in the case wherethe concentration of nitrogen atoms is lower than the above range, anoxide semiconductor with a wurtzite crystal structure can be obtained insome cases.

Alternatively, the oxide semiconductor layer 913 may be formed using anoxide including a CAAC. In the case where the oxide semiconductor layer913 is formed using an oxide including a CAAC, the conductivity of theoxide semiconductor layer 913 can be increased as compared to the casewhere an amorphous crystal is used. Thus, the resistance between thesource electrode 914 and the drain electrode 915 can be lowered.

When the resistance between the source electrode 914 and the drainelectrode 915 is lowered, high on-state current and high-speed operationcan be secured even when the transistor 911 is miniaturized. Inaddition, by miniaturization of the transistor 911, the area of astorage element including the transistor can be reduced, so that memorycapacity per unit area can be increased.

A transistor 921 illustrated in FIG. 17C includes an oxide semiconductorlayer 923 that is formed over an insulating film 922 and functions as anactive layer; a source electrode 924 and a drain electrode 925 that areformed over the oxide semiconductor layer 923; a gate insulating film926 that is formed over the oxide semiconductor layer 923, the sourceelectrode 924, and the drain electrode 925; and a gate electrode 927that overlaps with the oxide semiconductor layer 923 over the gateinsulating film 926. The transistor 921 further includes sidewalls 930that are provided at ends of the gate electrode 927 and are formed usingan insulating film.

The transistor 921 illustrated in FIG. 17C is a top-gate transistor inwhich the gate electrode 927 is formed over the oxide semiconductorlayer 923 and is also a top-contact transistor in which the sourceelectrode 924 and the drain electrode 925 are formed over the oxidesemiconductor layer 923. As in the transistor 901, in the transistor921, the source electrode 924 and the drain electrode 925 do not overlapwith the gate electrode 927. Thus, parasitic capacitance formed betweenthe source electrode 924 and the gate electrode 927 and between thedrain electrode 925 and the gate electrode 927 can be reduced.Consequently, high-speed operation can be performed.

The oxide semiconductor layer 923 includes a pair of high-concentrationregions 928 and a pair of low-concentration regions 929 that can beobtained by addition of a dopant imparting n-type conductivity to theoxide semiconductor layer 923 after the formation of the gate electrode927. In addition, in the oxide semiconductor layer 923, a region whichoverlaps with the gate electrode 927 with the gate insulating film 926provided therebetween is a channel formation region 931. The oxidesemiconductor layer 923 includes the pair of low-concentration regions929 between the pair of high-concentration regions 928 and the channelformation region 931 between the pair of low-concentration regions 929.Further, the pair of low-concentration regions 929 is provided in aregion of the oxide semiconductor layer 923 that overlaps with thesidewalls 930 with the gate insulating film 926 provided therebetween.

The pair of high-concentration regions 928 and the pair oflow-concentration regions 929 can be formed by ion implantation as inthe high-concentration regions 908 of the transistor 901. Thehigh-concentration regions 908 can be referred to for the kind of adopant used for the formation of the high-concentration regions 928.

For example, in the case where nitrogen is used as the dopant, theconcentration of nitrogen atoms in the high-concentration region 928 ispreferably 5×10¹⁹/cm³ or higher and 1×10²²/cm³ or lower. Further, forexample, in the case where nitrogen is used as the dopant, theconcentration of nitrogen atoms in the low-concentration region 929 ispreferably 5×10¹⁸/cm³ or higher and lower than 5×10¹⁹/cm³.

The high-concentration region 928 to which the dopant imparting n-typeconductivity is added has higher conductivity than other regions in theoxide semiconductor layer 923. Thus, with provision of thehigh-concentration regions 928 in the oxide semiconductor layer 923,resistance between the source electrode 924 and the drain electrode 925can be lowered. Further, with provision of the low-concentration region929 between the channel formation region 931 and the high-concentrationregion 928, a negative shift in threshold voltage due to a short channeleffect can be reduced.

In the case where an In—Ga—Zn-based oxide semiconductor is used for theoxide semiconductor layer 923, an oxide semiconductor in thehigh-concentration regions 928 has a wurtzite crystal structure by heattreatment at approximately 300 to 600° C. after the addition ofnitrogen. Further, depending on the concentration of nitrogen, thelow-concentration region 929 has a wurtzite crystal structure in somecases. When the oxide semiconductor in the high-concentration regions928 has a wurtzite crystal structure, the conductivity of thehigh-concentration regions 928 can be further increased and theresistance between the source electrode 924 and the drain electrode 925can be further lowered. Note that in order to effectively lower theresistance between the source electrode 924 and the drain electrode 925by formation of an oxide semiconductor with a wurtzite crystalstructure, the concentration of nitrogen atoms in the high-concentrationregion 928 is preferably 1×10²⁰/cm³ or higher and 7 at. % or lower inthe case where nitrogen is used as the dopant. Even in the case wherethe concentration of nitrogen atoms is lower than the above range, anoxide semiconductor with a wurtzite crystal structure can be obtained insome cases.

Alternatively, the oxide semiconductor layer 923 may be formed using anoxide including a CAAC. In the case where the oxide semiconductor layer923 is formed using an oxide including a CAAC, the conductivity of theoxide semiconductor layer 923 can be increased as compared to the casewhere an amorphous crystal is used. Thus, the resistance between thesource electrode 924 and the drain electrode 925 can be lowered.

When the resistance between the source electrode 924 and the drainelectrode 925 is lowered, high on-state current and high-speed operationcan be secured even when the transistor 921 is miniaturized. Inaddition, by miniaturization of the transistor 921, the area of a memorycell including the transistor can be reduced, so that memory capacityper unit area can be increased.

A transistor 941 illustrated in FIG. 17D includes a source electrode 944and a drain electrode 945 that are formed over an insulating film 942;an oxide semiconductor layer 943 that is formed over the sourceelectrode 944 and the drain electrode 945 and functions as an activelayer; a gate insulating film 946 that is formed over the oxidesemiconductor layer 943, the source electrode 944, and the drainelectrode 945; and a gate electrode 947 that overlaps with the oxidesemiconductor layer 943 over the gate insulating film 946. Thetransistor 941 further includes sidewalls 950 that are provided at endsof the gate electrode 947 and are formed using an insulating film.

The transistor 941 illustrated in FIG. 17D is a top-gate transistor inwhich the gate electrode 947 is formed over the oxide semiconductorlayer 943 and is also a bottom-contact transistor in which the sourceelectrode 944 and the drain electrode 945 are formed below the oxidesemiconductor layer 943. As in the transistor 901, in the transistor941, the source electrode 944 and the drain electrode 945 do not overlapwith the gate electrode 947. Thus, parasitic capacitance formed betweenthe source electrode 944 and the gate electrode 947 and between thedrain electrode 945 and the gate electrode 947 can be reduced.Consequently, high-speed operation can be performed.

The oxide semiconductor layer 943 includes a pair of high-concentrationregions 948 and a pair of low-concentration regions 949 that can beobtained by addition of a dopant imparting n-type conductivity to theoxide semiconductor layer 943 after the formation of the gate electrode947. In addition, in the oxide semiconductor layer 943, a region whichoverlaps with the gate electrode 947 with the gate insulating film 946provided therebetween is a channel formation region 951. The oxidesemiconductor layer 943 includes the pair of low-concentration regions949 between the pair of high-concentration regions 948 and the channelformation region 951 between the pair of low-concentration regions 949.Further, the pair of low-concentration regions 949 is provided in aregion of the oxide semiconductor layer 943 that overlaps with thesidewalls 950 with the gate insulating film 946 provided therebetween.

The pair of high-concentration regions 948 and the pair oflow-concentration regions 949 can be formed by ion implantation as inthe high-concentration regions 908 of the transistor 901. Thehigh-concentration regions 908 can be referred to for the kind of adopant used for the formation of the high-concentration regions 948.

For example, in the case where nitrogen is used as the dopant, theconcentration of nitrogen atoms in the high-concentration region 948 ispreferably 5×10¹⁹/cm³ or higher and 1×10²²/cm³ or lower. Further, forexample, in the case where nitrogen is used as the dopant, theconcentration of nitrogen atoms in the low-concentration region 949 ispreferably 5×10¹⁸/cm³ or higher and lower than 5×10¹⁹/cm³.

The high-concentration region 948 to which the dopant imparting n-typeconductivity is added has higher conductivity than other regions in theoxide semiconductor layer 943. Thus, with provision of thehigh-concentration regions 948 in the oxide semiconductor layer 943,resistance between the source electrode 944 and the drain electrode 945can be lowered. Further, with provision of the low-concentration region949 between the channel formation region 951 and the high-concentrationregion 948, a negative shift in threshold voltage due to a short channeleffect can be reduced.

In the case where an In—Ga—Zn-based oxide semiconductor is used for theoxide semiconductor layer 943, an oxide semiconductor in thehigh-concentration regions 948 has a wurtzite crystal structure by heattreatment at approximately 300 to 600° C. after the addition ofnitrogen. Further, depending on the concentration of nitrogen, thelow-concentration region 949 has a wurtzite crystal structure in somecases. When the oxide semiconductor in the high-concentration regions948 has a wurtzite crystal structure, the conductivity of thehigh-concentration regions 948 can be further increased and theresistance between the source electrode 944 and the drain electrode 945can be further lowered. Note that in order to effectively lower theresistance between the source electrode 944 and the drain electrode 945by formation of an oxide semiconductor with a wurtzite crystalstructure, the concentration of nitrogen atoms in the high-concentrationregion 948 is preferably 1×10²⁰/cm³ or higher and 7 at. % or lower inthe case where nitrogen is used as the dopant. Even in the case wherethe concentration of nitrogen atoms is lower than the above range, anoxide semiconductor with a wurtzite crystal structure can be obtained insome cases.

Alternatively, the oxide semiconductor layer 943 may be formed using anoxide including a CAAC. In the case where the oxide semiconductor layer943 is formed using an oxide including a CAAC, the conductivity of theoxide semiconductor layer 943 can be increased as compared to the casewhere an amorphous crystal is used. Thus, the resistance between thesource electrode 944 and the drain electrode 945 can be lowered.

When the resistance between the source electrode 944 and the drainelectrode 945 is lowered, high on-state current and high-speed operationcan be secured even when the transistor 941 is miniaturized. Inaddition, by miniaturization of the transistor 941, the area of astorage element including the transistor can be reduced, so that memorycapacity per unit area can be increased.

Note that as one of methods for forming a high-concentration regionfunctioning as a source region or a drain region in a transistorincluding an oxide semiconductor through a self-aligning process, amethod has been disclosed by which a surface of an oxide semiconductorlayer is exposed, argon plasma treatment is performed, and theresistance of a region in the oxide semiconductor layer that is exposedto plasma is lowered (S. Jeon et al., “180 nm Gate Length AmorphousInGaZnO Thin Film Transistor for High Density Image SensorApplications”, IEDM Tech. Dig., pp. 504-507, 2010).

However, in the formation method, it is necessary to remove a gateinsulating film partly so that a region serving as a source region or adrain region is exposed after the formation of the gate insulating film.Thus, when the gate insulating film is removed, the oxide semiconductorlayer that is the lower layer is over etched partly, so that thethickness of the region serving as the source region or the drain regionis decreased. Consequently, the resistance of the source region or thedrain region is increased and defects in characteristics of thetransistor due to over etching easily occur.

In order to miniaturize the transistor, it is necessary to employ dryetching, which has high processing accuracy. The over etchingparticularly occurs easily in the case where dry etching, which cannotsecure selectivity of the oxide semiconductor layer with respect to thegate insulating film sufficiently.

For example, over etching does not matter when the oxide semiconductorlayer has sufficient large thickness. However, in the case where thechannel length is 200 nm or less, it is necessary that the thickness ofa region in the oxide semiconductor layer that serves as a channelformation region be 20 nm or less, preferably 10 nm or less in order toprevent a short channel effect. In the case where such a thin oxidesemiconductor layer is used, the over etching of the oxide semiconductorlayer is unfavorable because the resistance of the source region or thedrain region is increased and defects in characteristics of thetransistor occur as described above.

However, when a dopant is added to the oxide semiconductor layer whilethe oxide semiconductor layer is not exposed and the gate insulatingfilm is left as in one embodiment of the present invention, the overetching of the oxide semiconductor layer can be prevented and excessivedamage to the oxide semiconductor layer can be reduced. Further, aninterface between the oxide semiconductor layer and the gate insulatingfilm is kept clean. Thus, the characteristics and reliability of thetransistor can be improved.

This embodiment can be combined with any of the other embodiments asappropriate.

EXAMPLE 1

With the use of a semiconductor device including a programmable LSIaccording to one embodiment of the present invention, a low-powerelectronic device can be provided. In particular, in the case where aportable electronic device which has difficulty in continuouslyreceiving power, an advantage of an increase in continuous operatingtime can be obtained when a low-power semiconductor device according toone embodiment of the present invention is added as a component of thedevice.

The semiconductor device including a programmable LSI according to oneembodiment of the present invention can be used for display devices,personal computers, or image reproducing devices provided with recordingmedia (typically, devices which reproduce the content of recording mediasuch as digital versatile discs (DVDs) and have displays for displayingthe reproduced images). Further, as an electronic device which caninclude the semiconductor device including a programmable LSI accordingto one embodiment of the present invention, cellular phones, portablegame machines, personal digital assistants, e-book readers, cameras suchas video cameras and digital still cameras, goggle-type displays (headmounted displays), navigation systems, audio reproducing devices (e.g.,car audio systems and digital audio players), copiers, facsimiles,printers, multifunction printers, automated teller machines (ATM),vending machines, and the like can be given.

The case is described in which the semiconductor device including aprogrammable LSI according to one embodiment of the present invention isapplied to a portable electronic device such as a cellular phone, asmartphone, or an e-book reader.

FIG. 18 is a block diagram of a portable electronic device. The portableelectronic device illustrated in FIG. 18 includes an RF circuit 421, ananalog baseband circuit 422, a digital baseband circuit 423, a battery424, a power supply circuit 425, an application processor 426, a flashmemory 430, a display controller 431, a memory circuit 432, a display433, a touch sensor 439, an audio circuit 437, a keyboard 438, and thelike. The display 433 includes a display portion 434, a source driver435, and a gate driver 436. The application processor 426 includes a CPU427, a DSP 428, and an interface 429. When the programmable LSIdescribed in the above embodiment is used as the CPU 427, powerconsumption can be reduced.

FIG. 19 is a block diagram of an e-book reader. The e-book readerincludes a battery 451, a power supply circuit 452, a microprocessor453, a flash memory 454, an audio circuit 455, a keyboard 456, a memorycircuit 457, a touch panel 458, a display 459, and a display controller460. When the programmable LSI described in the above embodiment is usedas the microprocessor 453, power consumption can be reduced. Further,when the storage device described in the above embodiment is used as thememory circuit 457, power consumption can be reduced.

This example can be combined with any of the above embodiments asappropriate.

This application is based on Japanese Patent Application serial No.2011-031790 filed with Japan Patent Office on Feb. 17, 2011, the entirecontents of which are hereby incorporated by reference.

What is claimed is:
 1. A semiconductor device comprising: a logicelement; and a memory element comprising a storage element, wherein thememory element is configured to store configuration data in the storageelement and output the configuration data, wherein the logic element isconfigured to receive the configuration data and change a function ofthe logic element in accordance with the configuration data, and whereinthe storage element comprises a first transistor comprising an oxidesemiconductor layer, a second transistor, and a third transistor,wherein a gate of the first transistor is electrically connected to afirst wiring, wherein a first terminal of the first transistor iselectrically connected to a second wiring, wherein a second terminal ofthe first transistor is electrically connected to a gate of the secondtransistor, wherein a first terminal of the second transistor iselectrically connected to a third wiring, wherein a second terminal ofthe second transistor is electrically connected to a first terminal ofthe third transistor, wherein a second terminal of the third transistoris electrically connected to a fourth wiring, wherein a gate of thethird transistor is electrically connected to a fifth wiring, andwherein the memory element is configured to output the configurationdata through the fourth wiring.
 2. The semiconductor device according toclaim 1, wherein the second wiring is electrically connected to thefourth wiring.
 3. The semiconductor device according to claim 1, whereinthe logic element comprises a selection circuit, wherein the selectioncircuit comprises a first input terminal, a second input terminal, andan output terminal, wherein the first input terminal is configured toreceive a first voltage, wherein the second input terminal is configuredto receive a second voltage, wherein the selection circuit is configuredto output the first voltage while the configuration data is first data,and wherein the selection circuit is configured to output the secondvoltage while the configuration data is second data.
 4. A semiconductordevice comprising: a first logic element; a second logic element; aselection circuit; and a memory element comprising a storage element,wherein the memory element is configured to store configuration data inthe storage element and output the configuration data, wherein theselection circuit is configured to receive the configuration data andchange an electrical connection between the first logic element and thesecond logic element in accordance with the configuration data, andwherein the storage element comprises a first transistor comprising anoxide semiconductor layer, a second transistor, and a third transistor,wherein a gate of the first transistor is electrically connected to afirst wiring, wherein a first terminal of the first transistor iselectrically connected to a second wiring, wherein a second terminal ofthe first transistor is electrically connected to a gate of the secondtransistor, wherein a first terminal of the second transistor iselectrically connected to a third wiring, wherein a second terminal ofthe second transistor is electrically connected to a first terminal ofthe third transistor, wherein a second terminal of the third transistoris electrically connected to a fourth wiring, wherein a gate of thethird transistor is electrically connected to a fifth wiring, andwherein the memory element is configured to output the configurationdata through the fourth wiring.
 5. The semiconductor device according toclaim 4, wherein the second wiring is electrically connected to thefourth wiring.
 6. The semiconductor device according to claim 4, whereinthe selection circuit comprises a first input terminal, a second inputterminal, and an output terminal, wherein the first input terminal isconfigured to receive a first voltage from an output terminal of thefirst logic element, wherein the second input terminal is configured toreceive a second voltage, wherein the selection circuit is configured tooutput the first voltage to an input terminal of the second logicelement while the configuration data is first data, and wherein theselection circuit is configured to output the second voltage to theinput terminal of the second logic element while the configuration datais second data.
 7. A semiconductor device comprising: a logic element;and a memory element comprising a first storage element and a secondstorage element, wherein the memory element is configured to store firstconfiguration data in the first storage element and second configurationdata in the second storage element, wherein the memory element isconfigured to output one of the first configuration data and the secondconfiguration data, wherein the logic element is configured to receivethe one of the first configuration data and the second configurationdata, change a function of the logic element after the logic elementreceives the first configuration data, and change the function of thelogic element after the logic element receives the second configurationdata, and wherein the first storage element comprises a first transistorcomprising an oxide semiconductor layer, a second transistor, and athird transistor, wherein a gate of the first transistor is electricallyconnected to a first wiring, wherein a first terminal of the firsttransistor is electrically connected to a second wiring, wherein asecond terminal of the first transistor is electrically connected to agate of the second transistor, wherein a first terminal of the secondtransistor is electrically connected to a third wiring, wherein a secondterminal of the second transistor is electrically connected to a firstterminal of the third transistor, wherein a second terminal of the thirdtransistor is electrically connected to a fourth wiring, wherein a gateof the third transistor is electrically connected to a fifth wiring, andwherein the memory element is configured to output the firstconfiguration data through the fourth wiring.
 8. The semiconductordevice according to claim 7, wherein the second wiring is electricallyconnected to the fourth wiring.
 9. The semiconductor device according toclaim 7, wherein the logic element comprises a selection circuit,wherein the selection circuit comprises a first input terminal, a secondinput terminal, and an output terminal, wherein the first input terminalis configured to receive a first voltage, wherein the second inputterminal is configured to receive a second voltage, wherein theselection circuit is configured to output the first voltage after thelogic element receives the first configuration data, and wherein theselection circuit is configured to output the second voltage after thelogic element receives the second configuration data.